diff --git a/app/common/repositories/store/order/StoreOrderRepository.php b/app/common/repositories/store/order/StoreOrderRepository.php index 07fca14c..e3960436 100644 --- a/app/common/repositories/store/order/StoreOrderRepository.php +++ b/app/common/repositories/store/order/StoreOrderRepository.php @@ -2559,7 +2559,6 @@ class StoreOrderRepository extends BaseRepository $attr_values = implode('-!-', $attr_values); //更新规格属性 Db::name('store_product_attr')->where('product_id', $find['product_id'])->where('attr_name', $kk)->update(['attr_values' => $attr_values]); - $is_update = true; } } else { $datas = [ diff --git a/crmeb/jobs/ImportPicJob.php b/crmeb/jobs/ImportPicJob.php index fbd93758..d1f0a9fe 100644 --- a/crmeb/jobs/ImportPicJob.php +++ b/crmeb/jobs/ImportPicJob.php @@ -79,6 +79,7 @@ class ImportPicJob implements JobInterface /**更新商品图片 */ $image = $upload->to($dir)->stream(file_get_contents($image)); $update['image'] = $image->filePath; + Db::name('store_spu')->where('product_id', $find['product_id'])->update($update); foreach ($slider_image as $k => $v) { $oss = $upload->to($dir)->stream(file_get_contents($v)); $update['slider_image'][] = $oss->filePath;