Commit 29fffed7 authored by fangxinjiang's avatar fangxinjiang

校验服务优化

parent bf195c6c
......@@ -194,8 +194,11 @@ public class ChecksUtil {
params.put(ChecksConstants.ID_NUM, idNum);
String result = HttpUtils.post(API_URL, params);
// 解析json,并返回结果
if (Common.isNotNull(result)){
return jsonParser.parse(result).getAsJsonObject();
}
return null;
}
/**
* @Author fxj
......@@ -210,8 +213,11 @@ public class ChecksUtil {
params.put(ChecksConstants.MOBILES, mobiles);
String result = HttpUtils.post(API_URL_MOBILE, params);
// 解析json,并返回结果
if (Common.isNotNull(result)){
return jsonParser.parse(result).getAsJsonObject();
}
return null;
}
private static JsonObject invokeBankNo(String name, String idNum, String cardNo, String mobile) {
Map<String, String> params = new HashMap<>();
......@@ -225,8 +231,11 @@ public class ChecksUtil {
}
String result = HttpUtils.post(API_URL_BANK_NO, params);
// 解析json,并返回结果
if (Common.isNotNull(result)){
return jsonParser.parse(result).getAsJsonObject();
}
return null;
}
private static JsonObject invokeBankNoTwoAuth(String name,String cardNo) {
Map<String, String> params = new HashMap<>();
......@@ -236,6 +245,9 @@ public class ChecksUtil {
params.put(ChecksConstants.CARD_NO, cardNo);
String result = HttpUtils.post(API_URL_BANK_NO_TWO, params);
// 解析json,并返回结果
if (Common.isNotNull(result)){
return jsonParser.parse(result).getAsJsonObject();
}
return null;
}
}
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