This commit is contained in:
mkm 2025-01-25 14:59:58 +08:00
parent 57bde2df4c
commit 97697e4882

View File

@ -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 {