Commit ec93d31f authored by 王向伟's avatar 王向伟

考拉返回结果添加日志

parent 22df2291
......@@ -86,6 +86,7 @@ public class KoalaCenterService {
if (Application.isDebug()) {
String result = koalaCenter.approve(approveData);
JsonResult jsonObject = JSONObject.parseObject(result, JsonResult.class);
log.info("koala审批结果 result={}",result);
if(jsonObject.isSuccess()){
return Constants.SUCCESS;
}else {
......@@ -98,7 +99,14 @@ public class KoalaCenterService {
public String cancelPreLoan(Map<Object, Object> data,String token) {
if (Application.isDebug()) {
return koalaCenter.cancelPreLoan(data,token);
String result = koalaCenter.cancelPreLoan(data,token);
log.info("koala贷前关单结果 result={}",result);
JsonResult jsonObject = JSONObject.parseObject(result, JsonResult.class);
if(jsonObject.isSuccess()){
return Constants.SUCCESS;
}else {
return Constants.FAIL;
}
} else {
return "error";
}
......@@ -107,6 +115,7 @@ public class KoalaCenterService {
public String cancelAfterLoan(Map<Object, Object> data) {
if (Application.isDebug()) {
String result = koalaCenter.cancelAfterLoan(data);
log.info("koala贷后关单结果 result={}",result);
JsonResult jsonObject = JSONObject.parseObject(result, JsonResult.class);
if(jsonObject.isSuccess()){
return Constants.SUCCESS;
......@@ -121,6 +130,7 @@ public class KoalaCenterService {
public String cancelPreLoanHasLoanId(Map<Object, Object> data,String token) {
if (Application.isDebug()) {
String result = koalaCenter.cancelPreLoanHasLoanId(data,token);
log.info("koala 有loanId贷前关单 result={}",result);
JsonResult jsonObject = JSONObject.parseObject(result, JsonResult.class);
if(jsonObject.isSuccess()){
return Constants.SUCCESS;
......
......@@ -32,7 +32,7 @@ public class MoClothoServiceImpl implements MoClothoService{
paramMap.put("payTime",System.currentTimeMillis());
paramMap.put("payStatus", expectPayResult ? 3 : 5);
String result = moClothoCenter.pushLendingResult(paramMap);
log.info("[放款结果通知]xyqb返回结果result={}", result);
log.info("[放款结果通知]moClotho返回结果result={}", result);
JsonResult jsonResult = JSONObject.parseObject(result,JsonResult.class);
return jsonResult.isSuccess();
} else {
......
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