|
@@ -250,9 +250,13 @@ public class AdapayMerchantService {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static void checkSuccess(Map<String, Object> map) {
|
|
public static void checkSuccess(Map<String, Object> map) {
|
|
|
- if (!"succeeded".equals(MapUtils.getString(map, "status"))) {
|
|
|
|
|
|
|
+ String status = MapUtils.getString(map, "status");
|
|
|
|
|
+ if (!("succeeded".equals(status))) {
|
|
|
String errMsg = MapUtils.getString(map, "error_msg");
|
|
String errMsg = MapUtils.getString(map, "error_msg");
|
|
|
String errCode = MapUtils.getString(map, "error_code");
|
|
String errCode = MapUtils.getString(map, "error_code");
|
|
|
|
|
+ if ("account_exists".equals(errCode)) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
throw new BusinessException(errMsg + "(" + errCode + ")");
|
|
throw new BusinessException(errMsg + "(" + errCode + ")");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|