diff --git a/app/common/repositories/store/product/ProductRepository.php b/app/common/repositories/store/product/ProductRepository.php index cb0b7fab..84659ffe 100644 --- a/app/common/repositories/store/product/ProductRepository.php +++ b/app/common/repositories/store/product/ProductRepository.php @@ -2354,7 +2354,6 @@ class ProductRepository extends BaseRepository } } if ($orderProduct->is_imported == 0) { - $stockIn=$orderProduct['product_num']; ProductAttrValue::where('mer_id', $merId) @@ -2374,6 +2373,7 @@ class ProductRepository extends BaseRepository if (!$model->save($data)) { throw new ValidateException('入库失败'); } + $orderProduct->save(['is_imported' => 1]); Db::commit(); return true; }else{