‘linchangsheng’ 5 달 전
부모
커밋
80bc81ea3a

+ 1 - 0
mall-server-api/src/main/java/com/gree/mall/manager/helper/ResponseHelper.java

@@ -12,6 +12,7 @@ public class ResponseHelper<T> {
 
     public static int ResponseCode_Success = 200;
     public static int ResponseCode_COMMON = 501;//通用拦截提示
+    public static int ResponseCode_USER_WAIT = 415;//用户等待
     public static int ResponseCode_AUTH_ERROR = 1001;//非法请求
     public static final int ResponseCode_VALIDATION_ERROR = 4005;// 校验拦截提示
     public static final int ResponseCode_STOP_SERVICE = 4004;// 校验拦截提示

+ 2 - 1
mall-server-api/src/main/java/com/gree/mall/manager/logic/common/WechatLogic.java

@@ -30,6 +30,7 @@ import com.gree.mall.manager.enums.OrderShareStatusEnum;
 import com.gree.mall.manager.enums.PayStatusEnum;
 import com.gree.mall.manager.enums.SettlementStatusNewEnum;
 import com.gree.mall.manager.exception.RemoteServiceException;
+import com.gree.mall.manager.helper.ResponseHelper;
 import com.gree.mall.manager.plus.entity.*;
 import com.gree.mall.manager.plus.service.*;
 import com.gree.mall.manager.utils.*;
@@ -1280,7 +1281,7 @@ public class WechatLogic {
         if (payResult == null || WxPayConstants.ResultCode.FAIL.equals(payResult.getReturnCode())) {
 
             if (payResult.getErrCode().equals("USERPAYING"))
-                throw new RemoteServiceException("USERPAYING");
+                throw new RemoteServiceException(ResponseHelper.ResponseCode_USER_WAIT,"USERPAYING|"+id);
 
             throw new RemoteServiceException("扫码支付失败,请检查二维码是否正确");
         }