소스 검색

[智价云] 导出返回信息更新

tangyuanwang 4 일 전
부모
커밋
659a10b843
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      app/Http/Controllers/Manager/Process/LowPriceGoods.php
  2. 1 1
      app/Http/Controllers/Manager/Process/ViolationProduct.php

+ 1 - 1
app/Http/Controllers/Manager/Process/LowPriceGoods.php

@@ -427,7 +427,7 @@ class LowPriceGoods extends Controller
         if(!$result) return json_send(['code' => 'fail', 'msg' => '导出任务添加失败', 'data' => '']);
         ExportLowPriceGoodsJobs::dispatch($message_data);
         // ExportLowPriceGoodsJobs::dispatchSync($message_data);
-        return json_send(['code' => 'success', 'msg' => '导出任务添加成功', 'data' => '']);
+        return json_send(['code' => 'success', 'msg' => '导出任务添加成功', 'data' => ['file_id' => $fileId, 'file_name' => $fileName]]);
     }
 
 

+ 1 - 1
app/Http/Controllers/Manager/Process/ViolationProduct.php

@@ -424,7 +424,7 @@ class ViolationProduct extends Controller
         if(!$result) return json_send(['code' => 'fail', 'msg' => '导出任务添加失败', 'data' => '']);
         ExportViolationProductJobs::dispatch($message_data);
         // ExportViolationProductJobs::dispatchSync($message_data);
-        return json_send(['code' => 'success', 'msg' => '导出任务添加成功', 'data' => '']);
+        return json_send(['code' => 'success', 'msg' => '导出任务添加成功', 'data' => ['file_id' => $fileId, 'file_name' => $fileName]]);
     }