Merge pull request '1' (#494) from dev into main

Reviewed-on: #494
This commit is contained in:
mkm 2025-01-25 15:00:57 +08:00
commit e33bee3cea

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 {