Commit 202c3685 authored by hangjun83's avatar hangjun83

药明康德更新

parent 4e3fd923
...@@ -353,7 +353,8 @@ class WuxiLabService ...@@ -353,7 +353,8 @@ class WuxiLabService
//处理更新不成功的商品 //处理更新不成功的商品
if(isset($result['errorProduct']) && !empty($result['errorProduct'])){ if(isset($result['errorProduct']) && !empty($result['errorProduct'])){
$storeEntries = $this->apiService->getPlatformDataEntries('wuxiLab_not_exist_products','data_values'); $storeEntries = $this->apiService->getPlatformDataEntries('wuxiLab_not_exist_products','data_values');
if(!is_null($storeEntries) && count($storeEntries['products']) >= $this->apiService->getPlatformInfo('platform_params')['excelCreateLimit']){ if(isset($storeEntries) && !empty($storeEntries)){
if(count($storeEntries['products']) >= $this->apiService->getPlatformInfo('platform_params')['excelCreateLimit']){
/*$this->apiService->pushQueue([ /*$this->apiService->pushQueue([
'params' => ['products' => $storeEntries['products'],'type' => 'product'], 'params' => ['products' => $storeEntries['products'],'type' => 'product'],
'consumer' => __CLASS__, 'consumer' => __CLASS__,
...@@ -372,9 +373,9 @@ class WuxiLabService ...@@ -372,9 +373,9 @@ class WuxiLabService
'method' => 'processProductsUpdateThroughtExcel' 'method' => 'processProductsUpdateThroughtExcel'
] ]
);*/ );*/
$this->apiService->removePlatformDataEntries('wuxiLab_not_exist_products');
$storeEntries = []; $storeEntries = [];
} }
}
foreach($result['errorProduct'] as $errorProduct){ foreach($result['errorProduct'] as $errorProduct){
if($errorProduct['reason'] == 'PRODUCT_NOT_EXIST'){ if($errorProduct['reason'] == 'PRODUCT_NOT_EXIST'){
if(!is_null($storeEntries) && !empty($storeEntries['products'])){ if(!is_null($storeEntries) && !empty($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