|
|
@@ -62,7 +62,7 @@ class LowPriceGoodsJobs implements ShouldQueue
|
|
|
if ($company_id) {
|
|
|
$ConfigLowPriceGoodsModel = $ConfigLowPriceGoodsModel->where('washconfig_lowprice_product.company_id', $company_id);
|
|
|
}
|
|
|
- $list_config_data = $ConfigLowPriceGoodsModel->paginate($limit, ['*'], 'page', $page)->toarray();
|
|
|
+ $list_config_data = $ConfigLowPriceGoodsModel->with(['product_keyword'])->paginate($limit, ['*'], 'page', $page)->toarray();
|
|
|
|
|
|
if (!$list_config_data || empty($list_config_data['data'])) {
|
|
|
return true;
|
|
|
@@ -77,7 +77,7 @@ class LowPriceGoodsJobs implements ShouldQueue
|
|
|
$message_data = [
|
|
|
'company_id' => $value['company_id'],
|
|
|
'id' => $value['id'],
|
|
|
- 'platform' => $value['platform'],
|
|
|
+ 'platform' => $value['platform'],
|
|
|
'product_name' => $value['product_name'],
|
|
|
'product_specs' => $value['product_specs'],
|
|
|
'suggested_price' => $value['suggested_price'],
|
|
|
@@ -87,6 +87,8 @@ class LowPriceGoodsJobs implements ShouldQueue
|
|
|
'executeLog_id' => $executeLog_id,
|
|
|
'category_name' => $value['category_name'] ? $value['category_name'] : '',
|
|
|
'specify_responsible_person' => $value['specify_responsible_person'],
|
|
|
+ 'product_brand' => $value['product_brand'],
|
|
|
+ 'product_keyword' => $value['product_keyword'],
|
|
|
];
|
|
|
LowPriceGoodsDataJobs::dispatch($message_data);
|
|
|
// LowPriceGoodsDataJobs::dispatchSync($message_data);
|