修改用户收货地址

This commit is contained in:
2023-04-12 13:34:05 +08:00
parent 2b48b9cc9e
commit 189dc54d55
5 changed files with 64 additions and 16 deletions
+3 -3
View File
@@ -207,17 +207,17 @@ class OrderProductService extends BaseService
}
// 检测商品订单退款状态
if ($order_product['order_product_status'] == 2){
if ($order_product['refund_status'] == 2){
// 商品订单退款状态(0:无退款 1:申请退款 2:退款中 3:退款成功 4:拒绝退款 5:退款关闭 6:退款异常)
throw new BusinessException("订单退款中");
}
if ($order_product['order_product_status'] == 3){
if ($order_product['refund_status'] == 3){
// 商品订单退款状态(0:无退款 1:申请退款 2:退款中 3:退款成功 4:拒绝退款 5:退款关闭 6:退款异常)
throw new BusinessException("订单已退款成功");
}
if ($order_product['order_product_status'] == 5){
if ($order_product['refund_status'] == 5){
// 商品订单退款状态(0:无退款 1:申请退款 2:退款中 3:退款成功 4:拒绝退款 5:退款关闭 6:退款异常)
throw new BusinessException("订单退款关闭");
}
+1 -1
View File
@@ -367,7 +367,7 @@ class UserService extends BaseService
$data['consignee_tel'] = $request_params['consignee_tel'];
$data['consignee_tel_mask'] = Mask::maskPhoneStr($request_params['consignee_tel']);
$data['is_default'] = $request_params['is_default'];
$data['tag'] = $request_params['tag'] ?? "";
$data['tag'] = $request_params['tag'] ?? 4;
$user_ship_address = UserShipAddress::addUserShipAddress($data);
if (empty($user_ship_address)) {
Db::rollBack();