|
|
@@ -1690,12 +1690,11 @@ class WorkOrder extends Api
|
|
|
{
|
|
|
$fileName = '黄金叶(软大金圆)(二维码版)';
|
|
|
$filePath = 'uploads/黄金叶(软大金圆)(二维码版).xlsx'; // Excel文件路径
|
|
|
- $fileContent = file_get_contents($filePath);
|
|
|
|
|
|
$protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http';
|
|
|
$host = $_SERVER['HTTP_HOST'];
|
|
|
$siteUrl = $protocol . '://' . $host .'/'.$filePath ;
|
|
|
- $this->success('成功',['fileName'=>$fileName,'fileContent'=>$fileContent]);
|
|
|
+ $this->success('成功',['fileName'=>$fileName,'filePath'=>$siteUrl]);
|
|
|
$excelData = []; // 存储 Excel 数据的数组
|
|
|
|
|
|
$reader = IOFactory::createReader('Xlsx'); // 创建Excel读取器
|