Commit 913e0da3 authored by hangjun83's avatar hangjun83

队列更新

parent 15fb691e
...@@ -318,14 +318,14 @@ class WuxiLabService ...@@ -318,14 +318,14 @@ class WuxiLabService
} }
//更新成功,批量更新包装规格 //更新成功,批量更新包装规格
$storeEntries = $this->apiService->getPlatformDataEntries('wuxiLab_do_not_update_products','data_values'); $storeEntries = $this->apiService->getPlatformDataEntries('wuxiLab_do_not_update_products','data_values');
/*if(!is_null($storeEntries) && count($storeEntries['products']) >= $this->apiService->getPlatformInfo('platform_params')['excelCreateLimit']){ if(!is_null($storeEntries) && count($storeEntries['products']) >= $this->apiService->getPlatformInfo('platform_params')['excelCreateLimit']){
$this->apiService->pushQueue([ $this->apiService->pushQueue([
'params' => ['products' => $storeEntries['products'],'type' => 'package'], 'params' => ['products' => $storeEntries['products'],'type' => 'package'],
'consumer' => __CLASS__, 'consumer' => __CLASS__,
'method' => 'processProductsUpdateThroughtExcel' 'method' => 'processProductsUpdateThroughtExcel'
],'wuxilab_package'); ],'wuxilab_package');
$this->apiService->removePlatformDataEntries('wuxiLab_do_not_update_products'); $this->apiService->removePlatformDataEntries('wuxiLab_do_not_update_products');
}*/ }
foreach($result['successProduct'] as $successProduct){ foreach($result['successProduct'] as $successProduct){
if(!is_null($storeEntries) && !empty($storeEntries['products'])){ if(!is_null($storeEntries) && !empty($storeEntries['products'])){
if(!in_array($successProduct,$storeEntries['products'])){ if(!in_array($successProduct,$storeEntries['products'])){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment