阿里云四要素 日志
This commit is contained in:
parent
99679f8853
commit
bd9e9d6f4b
|
|
@ -128,6 +128,7 @@ public class AliServiceImpl implements AliService {
|
|||
String respBody = HttpUtil.createPost("https://bkvip.market.alicloudapi.com/v3/bcheck").headerMap(headers, true).body(reqBody).timeout(15 * 1000).execute().body();
|
||||
// {"error_code":0,"reason":"成功","result":{"respCode":"0","respMsg":"银行卡鉴权成功","bancardInfor":{"bankName":"招商银行","BankCode":"03080000","BankId":5,"type":"借记卡","cardname":"一卡通(银联卡)","tel":"95555","Icon":"2014121619271052743.gif"}},"sn":"010817431025283426800706871"}
|
||||
// {"error_code":10028,"reason":"成功","result":{"respCode":"6","respMsg":"身份证格式有误","bancardInfor":{"bankName":"招商银行","BankCode":"03080000","BankId":5,"type":"借记卡","cardname":"一卡通(银联卡)","tel":"95555","Icon":"2014121619271052743.gif"}},"sn":"010817575524183118006799233"}
|
||||
log.info("阿里云四要素: {},{}, {}, {}, 结果: {}", idCard, name, accountNo, bankPreMobile, respBody);
|
||||
JSONObject ret = JSONUtil.parseObj(respBody);
|
||||
JSONObject result = ret.getJSONObject("result");
|
||||
Integer errorCode = ret.getInt("error_code");
|
||||
|
|
|
|||
Loading…
Reference in New Issue