|
|
@@ -14,6 +14,7 @@ use App\Models\Manager\Process\ExecuteLog as ExecuteLogModel;
|
|
|
use App\Jobs\Manager\Process\LowPriceGoodsDataJobs;
|
|
|
use App\Models\Manager\WashConfig\ViolationStore as ViolationStoreModel;
|
|
|
use App\Models\Manager\WashConfig\LowPriceGoodsCompany as LowPriceGoodsCompanyModel;
|
|
|
+use Illuminate\Support\Carbon;
|
|
|
|
|
|
/**
|
|
|
* 数据清洗-低价挂网商品配置队列
|
|
|
@@ -47,6 +48,7 @@ class LowPriceGoodsJobs implements ShouldQueue
|
|
|
public function handle()
|
|
|
{
|
|
|
try {
|
|
|
+ // $start_time = Carbon::today()->startOfDay()->getTimestamp(); // 今天开始时间 00:00:00
|
|
|
$start_time = time() - 60 * 5; // 开始时间 5分钟之前
|
|
|
$end_time = time(); //结束时间
|
|
|
$ConfigLowPriceGoodsModel = new ConfigLowPriceGoodsModel();
|
|
|
@@ -107,8 +109,8 @@ class LowPriceGoodsJobs implements ShouldQueue
|
|
|
'start_time' => $start_time,
|
|
|
'end_time' => $end_time,
|
|
|
];
|
|
|
- LowPriceGoodsDataJobs::dispatch($message_data);
|
|
|
- // LowPriceGoodsDataJobs::dispatchSync($message_data);
|
|
|
+ // LowPriceGoodsDataJobs::dispatch($message_data);
|
|
|
+ LowPriceGoodsDataJobs::dispatchSync($message_data);
|
|
|
}
|
|
|
$now_message_data = [
|
|
|
'limit' => $limit,
|