Commit dd80bc27 by 崔彦峰

优化NbCbCommonUtil日志。

1 parent 5f84ec46
...@@ -32,25 +32,25 @@ public class NbCbCommonUtil { ...@@ -32,25 +32,25 @@ public class NbCbCommonUtil {
public JSONObject getNbCbResponseData(String productId, String serviceID, String jsonString) throws Exception { public JSONObject getNbCbResponseData(String productId, String serviceID, String jsonString) throws Exception {
log.info("查询宁波银行接口 productId:{}, serviceID:{}, parma:{}", productId, serviceID, jsonString); log.info("getNbCbResponseData查询宁波银行接口productId:{}, serviceID:{}, parma:{}", productId, serviceID, jsonString);
String appKey = getAppKey(jsonString); String appKey = getAppKey(jsonString);
String res = OpenSDK.send(appKey,productId, serviceID, jsonString); String res = OpenSDK.send(appKey,productId, serviceID, jsonString);
log.info("查询宁波银行接口 response" + res); log.info("getNbCbResponseData查询宁波银行接口productId:{}, serviceID:{}, parma:{},response:{}", productId, serviceID, jsonString, res);
JSONObject resonseJSON = JSONObject.parseObject(res); JSONObject resonseJSON = JSONObject.parseObject(res);
JSONObject jsonData = resonseJSON.getJSONObject("Data"); JSONObject jsonData = resonseJSON.getJSONObject("Data");
String retCode= (String) jsonData.get("retCode"); String retCode= (String) jsonData.get("retCode");
if (retCode.equals("0000")) { if (retCode.equals("0000")) {
return jsonData; return jsonData;
} }
log.warn("查询宁波银行接口状态码异常 retCode" + retCode); log.warn("getNbCbResponseData查询宁波银行接口状态码异常productId:{}, serviceID:{}, parma:{},retCode:{}", productId, serviceID, jsonString,retCode);
return null; return null;
} }
public JSONObject getNbCbResponseData2(String productId, String serviceID, String jsonString) throws Exception { public JSONObject getNbCbResponseData2(String productId, String serviceID, String jsonString) throws Exception {
log.info("查询宁波银行接口 productId:{}, serviceID:{}, parma:{}", productId, serviceID, jsonString); log.info("getNbCbResponseData2查询宁波银行接口productId:{}, serviceID:{}, parma:{}", productId, serviceID, jsonString);
String appKey = getAppKey(jsonString); String appKey = getAppKey(jsonString);
String res = OpenSDK.send(appKey,productId, serviceID, jsonString); String res = OpenSDK.send(appKey,productId, serviceID, jsonString);
log.info("查询宁波银行接口 productId:{}, serviceID:{}, parma:{}, response:{}", productId, serviceID, jsonString , res); log.info("getNbCbResponseData2查询宁波银行接口productId:{}, serviceID:{}, parma:{}, response:{}", productId, serviceID, jsonString , res);
JSONObject resonseJSON = JSONObject.parseObject(res); JSONObject resonseJSON = JSONObject.parseObject(res);
return resonseJSON.getJSONObject("Data"); return resonseJSON.getJSONObject("Data");
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!