Commit c85f2d0c authored by libin's avatar libin

提现

parent 705c2872
...@@ -11,7 +11,8 @@ import lombok.AllArgsConstructor; ...@@ -11,7 +11,8 @@ import lombok.AllArgsConstructor;
@AllArgsConstructor @AllArgsConstructor
public enum AliNeedPayErrorEnum { public enum AliNeedPayErrorEnum {
SYSTEM_ERROR("系统繁忙","系统繁忙"); SYSTEM_ERROR("系统繁忙","系统繁忙"),
PAYER_BALANCE_NOT_ENOUGH("余额不足","余额不足");
private String desc; private String desc;
private String reason; private String reason;
......
...@@ -425,7 +425,7 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> implements In ...@@ -425,7 +425,7 @@ public class OrderPayBiz extends BaseBiz<OrderPayMapper, OrderPay> implements In
log.info("转账调用失败"); log.info("转账调用失败");
String subCode = response.getSubCode(); String subCode = response.getSubCode();
if (aliNeedPayErrorCodes.contains(subCode)) { if (aliNeedPayErrorCodes.contains(subCode)) {
throw new BaseException("支付宝账号余额不足",PaySubErrorCodeEnum.PAY_NEED_ERROR.getSubCode()); throw new BaseException(AliNeedPayErrorEnum.valueOf(subCode).getDesc(),PaySubErrorCodeEnum.PAY_NEED_ERROR.getSubCode());
} }
throw new BaseException("支付宝转账失败:【错误码:" + response.getSubCode() + " 错误信息:" + response.getSubMsg() + "】",PaySubErrorCodeEnum.PAY_ERROR.getSubCode()); throw new BaseException("支付宝转账失败:【错误码:" + response.getSubCode() + " 错误信息:" + response.getSubMsg() + "】",PaySubErrorCodeEnum.PAY_ERROR.getSubCode());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment