|
|
@@ -81,9 +81,11 @@ public class AdapayService {
|
|
|
|
|
|
public static void checkSuccess(Map<String, Object> map) {
|
|
|
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 + ")");
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|