Merge branch 'feature/purchase_record' into dev
This commit is contained in:
commit
5962883929
@ -2333,7 +2333,7 @@ class ProductRepository extends BaseRepository
|
|||||||
if (!$model->save($data)) {
|
if (!$model->save($data)) {
|
||||||
throw new \Exception('入库失败');
|
throw new \Exception('入库失败');
|
||||||
}
|
}
|
||||||
if (!$orderProduct->save(['is_imported' => 1])) {
|
if (isset($orderProduct) && !$orderProduct->save(['is_imported' => 1])) {
|
||||||
throw new \Exception('订单商品更新出错');
|
throw new \Exception('订单商品更新出错');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user