Преглед изворни кода

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

tangyuanwang пре 4 дана
родитељ
комит
659a10b843

+ 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' => '']);
         if(!$result) return json_send(['code' => 'fail', 'msg' => '导出任务添加失败', 'data' => '']);
         ExportLowPriceGoodsJobs::dispatch($message_data);
         ExportLowPriceGoodsJobs::dispatch($message_data);
         // ExportLowPriceGoodsJobs::dispatchSync($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' => '']);
         if(!$result) return json_send(['code' => 'fail', 'msg' => '导出任务添加失败', 'data' => '']);
         ExportViolationProductJobs::dispatch($message_data);
         ExportViolationProductJobs::dispatch($message_data);
         // ExportViolationProductJobs::dispatchSync($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]]);
     }
     }