1.提交缺失的东西

This commit is contained in:
2025-09-04 17:45:27 +08:00
parent 582212d295
commit da8125ca0e

View File

@ -519,9 +519,9 @@ class OrderLogic extends LogicBase
$user_address = $data['address']; $user_address = $data['address'];
$user = User::find($user_id); $user = User::find($user_id);
if ($post['delivery_type'] != CommonOrder::DELIVERY_STATUS_SELF && empty($data['address'])) { // if ($post['delivery_type'] != CommonOrder::DELIVERY_STATUS_SELF && empty($data['address'])) {
throw new Exception('请选择收货地址'); // throw new Exception('请选择收货地址');
} // }
if ($post['delivery_type'] == CommonOrder::DELIVERY_STATUS_SELF && empty($post['selffetch_shop_id'])) { if ($post['delivery_type'] == CommonOrder::DELIVERY_STATUS_SELF && empty($post['selffetch_shop_id'])) {
throw new Exception('自提门店不能为空'); throw new Exception('自提门店不能为空');