shish há 1 ano atrás
pai
commit
1ed3fc36f6
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      app-ghs/controllers/UploadController.php

+ 3 - 1
app-ghs/controllers/UploadController.php

@@ -202,6 +202,8 @@ class UploadController extends BaseController
     //上传excel文件 ssh 20241126
     public function actionExcel()
     {
+        $get = Yii::$app->request->get();
+        $id = $get['id'] ?? '';
         $file = $_FILES['file'];
         if (!is_uploaded_file($file['tmp_name'])) {
             util::fail('please upload img');
@@ -219,7 +221,7 @@ class UploadController extends BaseController
         $newFile = $preFileName . ".xls";
         $fullPathFile = $path . $newFile;
         if (move_uploaded_file($file['tmp_name'], $fullPathFile)) {
-            util::complete($fullPathFile);
+            util::complete($fullPathFile . ' id:' . $id);
         } else {
             util::fail('fail');
         }