Merge pull request '1' (#494) from dev into main
Reviewed-on: https://gitea.lihaink.cn/mkm/multi-store/pulls/494
This commit is contained in:
commit
e33bee3cea
@ -61,8 +61,10 @@ class BeforehandOrderCartInfoLogic extends BaseLogic
|
||||
public static function appendAdd(array $params): bool
|
||||
{
|
||||
$order = BeforehandOrder::where('id', $params['id'])->find();
|
||||
if ((!empty($order) && $order->is_confirm == 1 && empty($params['admin_id'])) || $order['is_outbound'] > 0) {
|
||||
throw new BusinessException('该订单已确认,不能追加商品');
|
||||
if(empty($params['admin_id'])){
|
||||
if ((!empty($order) && $order->is_confirm == 1 ) || $order['is_outbound'] > 0) {
|
||||
throw new BusinessException('该订单已确认,不能追加商品');
|
||||
}
|
||||
}
|
||||
Db::startTrans();
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user