Commit 94e338df authored by hj's avatar hj

更新提交

parent 5f36f69a
...@@ -242,9 +242,9 @@ class WuxiLabNewService ...@@ -242,9 +242,9 @@ class WuxiLabNewService
$productsList = app(WuxiLabUpdateProductsService::class)->getUpdateProductsListByProductIds($productsIdsList); $productsList = app(WuxiLabUpdateProductsService::class)->getUpdateProductsListByProductIds($productsIdsList);
if(!empty($productsList)){ if(!empty($productsList)){
$productsList = array_column($productsList, null, 'product_id'); $productsList = array_column($productsList, null, 'product_id');
foreach($updateData['rawList'] as &$data){ foreach($updateData['rawList'] as $key => &$data){
if(empty($productsList[$data['r_code']])){ if(empty($productsList[$data['r_code']])){
unset($data); unset($updateData['rawList'][$key]);
continue; continue;
} }
$data['product_extend'] = $productsList[$data['r_code']]; $data['product_extend'] = $productsList[$data['r_code']];
......
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