refactor(admin): 注释掉预订单更新错误处理

在 BeforehandOrderCartInfoLogic 类中的代码中,注释掉了处理预订单更新失败的代码块。这次修改可能是为了暂时跳过预订单更新过程中的错误处理,或者是为了调试目的。
This commit is contained in:
mkm 2025-01-23 19:12:33 +08:00
parent c44b51e33f
commit c8560fafdc

View File

@ -419,9 +419,9 @@ class BeforehandOrderCartInfoLogic extends BaseLogic
$attrs['is_buying'] = 1;
}
$result = BeforehandOrder::where('id', $params['bhoid'])->where('warehousing_id', 0)->where('is_warehousing', 0)->update($attrs);
if (!$result) {
throw new BusinessException('入库失败,预订单更新出错');
}
// if (!$result) {
// throw new BusinessException('入库失败,预订单更新出错');
// }
}
Db::commit();
return true;