Browse Source

技术资料附件接口优化

曹鹤洋 1 year ago
parent
commit
02b508325a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      application/api/controller/WorkOrder.php

+ 4 - 0
application/api/controller/WorkOrder.php

@@ -1690,7 +1690,11 @@ class WorkOrder extends Api
     {
         $fileName = '黄金叶(软大金圆)(二维码版)';
     $filePath = 'uploads/黄金叶(软大金圆)(二维码版).xlsx'; // Excel文件路径
+    // $fileContent = file_get_contents($filePath);
 
+    // return $fileContent;
+    
+    
     $protocol = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? 'https' : 'http';
         $host = $_SERVER['HTTP_HOST'];
         $siteUrl = $protocol . '://' . $host .'/'.$filePath ;