Selaa lähdekoodia

[智价云] 导出更新

tangyuanwang 1 päivä sitten
vanhempi
sitoutus
f3010d211b
1 muutettua tiedostoa jossa 3 lisäystä ja 2 poistoa
  1. 3 2
      app/Http/Controllers/Manager/Process/LowPriceGoods.php

+ 3 - 2
app/Http/Controllers/Manager/Process/LowPriceGoods.php

@@ -20,6 +20,7 @@ use Illuminate\Support\Facades\Cache;
 use Illuminate\Support\Carbon;
 use App\Jobs\Manager\Process\ScrapeDataProductJobs;
 use App\Models\Manager\External\Company as CompanyModel;
+use App\Jobs\Manager\Process\CityWarningNoticeJobs;
 
 /**
  * 违规处理-低价商品
@@ -488,8 +489,8 @@ class LowPriceGoods extends Controller
         $fileName = '低价挂网商品数据' . $fileId . '.xlsx';
         $message_data['company_id']    = $low_price_goods_where['company_id'];
         $message_data['user_id']    = $message_data['user_id'];
-        // ExportLowPriceGoodsJobs::dispatch($message_data);
-        ExportLowPriceGoodsJobs::dispatchSync($message_data);
+        ExportLowPriceGoodsJobs::dispatch($message_data);
+        // ExportLowPriceGoodsJobs::dispatchSync($message_data);
         return json_send(['code' => 'success', 'msg' => '导出任务添加成功', 'data' => ['file_id' => $fileId, 'file_name' => $fileName]]);
     }