1.提交缺失的东西
This commit is contained in:
@ -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('自提门店不能为空');
|
||||||
|
|||||||
Reference in New Issue
Block a user