Browse Source

Merge branch 'dev'

xiongzhu 4 years ago
parent
commit
2f6fac7482
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/main/java/com/izouma/nineth/service/AdapayService.java

+ 5 - 3
src/main/java/com/izouma/nineth/service/AdapayService.java

@@ -81,9 +81,11 @@ public class AdapayService {
 
 
     public static void checkSuccess(Map<String, Object> map) {
     public static void checkSuccess(Map<String, Object> map) {
         if (!"succeeded".equals(MapUtils.getString(map, "status"))) {
         if (!"succeeded".equals(MapUtils.getString(map, "status"))) {
-            String errMsg = MapUtils.getString(map, "error_msg");
-            String errCode = MapUtils.getString(map, "error_code");
-            throw new BusinessException(errMsg + "(" + errCode + ")");
+            if (!"member_id_exists".equals(MapUtils.getString(map, "error_code"))) {
+                String errMsg = MapUtils.getString(map, "error_msg");
+                String errCode = MapUtils.getString(map, "error_code");
+                throw new BusinessException(errMsg + "(" + errCode + ")");
+            }
         }
         }
     }
     }
 }
 }