Przeglądaj źródła

//

private_deployment
xhxu 1 rok temu
rodzic
commit
2b7a573ecf
1 zmienionych plików z 9 dodań i 5 usunięć
  1. +9
    -5
      suimangCApi/src/main/java/com/iformall/controller/ProductOrderController.java

+ 9
- 5
suimangCApi/src/main/java/com/iformall/controller/ProductOrderController.java Wyświetl plik

@@ -127,6 +127,13 @@ public class ProductOrderController extends BaseController {
if(payVendorEnum == null){
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"支付方式参数错误");
}

if(EnumProductOrderPayVendor.PAY_WAY_WECHAT.getCode().equals(payVendor)){
if(StringUtils.isBlank(openId)){
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"openId为空");
}
}

Long id = null;
try{
id = Long.parseLong(orderNumber);
@@ -139,11 +146,8 @@ public class ProductOrderController extends BaseController {
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"未查询到订单");
}

if(EnumProductOrderPayVendor.PAY_WAY_WECHAT.getCode().equals(record.getPayVendor())){
if(StringUtils.isBlank(openId)){
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(),"openId为空");
}
}
productOrder.setOpenId(openId);
productOrder.setPayVendor(payVendor);

ResultData resultData = productOrderService.createPay(productOrder);



Ładowanie…
Anuluj
Zapisz