提交 1796b75a authored 作者: aiqingguo's avatar aiqingguo

承运借款流程-宁波银行

上级 c84f277f
......@@ -7,6 +7,7 @@ import com.nbopen.api.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.exception.ExceptionUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
......@@ -37,7 +38,7 @@ public class NbBankController {
nbBankNotifyService.payNotify(JSON.toJSONString(body));
return getResultSuc();
}catch (Exception e){
e.printStackTrace();
log.info("宁波银行回调失败:{}", ExceptionUtils.getStackTrace(e));
return getResultFail();
}
}
......
......@@ -12,6 +12,7 @@ import com.clx.performance.utils.LocalDateTimeUtils;
import com.msl.common.exception.ServiceSystemException;
import com.nbopen.api.*;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.exception.ExceptionUtils;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.io.FileSystemResource;
......@@ -57,8 +58,7 @@ public class NbBankThirdpartyServiceImpl implements NbBankThirdpartyService {
log.info("宁波银行SDK初始化, 状态:{}", initResult);
log.info("sdk版本信息:{}", NBOpenSDK.getVersionInfo());
} catch (IOException e) {
e.printStackTrace();
log.info("宁波银行SDK初始化失败");
log.info("宁波银行SDK初始化失败:{}", ExceptionUtils.getStackTrace(e));
}
}
......@@ -166,7 +166,7 @@ public class NbBankThirdpartyServiceImpl implements NbBankThirdpartyService {
return data;
} catch (Exception e) {
e.printStackTrace();
log.info("宁波银行接口异常:{}", ExceptionUtils.getStackTrace(e));
}
throw new ServiceSystemException(PerformanceResultEnum.NB_BANK_API_ERROR);
......@@ -265,7 +265,7 @@ public class NbBankThirdpartyServiceImpl implements NbBankThirdpartyService {
return data;
} catch (Exception e) {
e.printStackTrace();
log.info("宁波银行接口异常:{}", ExceptionUtils.getStackTrace(e));
}
throw new ServiceSystemException(PerformanceResultEnum.NB_BANK_API_ERROR);
......@@ -403,7 +403,7 @@ public class NbBankThirdpartyServiceImpl implements NbBankThirdpartyService {
return data;
} catch (Exception e) {
e.printStackTrace();
log.info("宁波银行接口异常:{}", ExceptionUtils.getStackTrace(e));
}
throw new ServiceSystemException(PerformanceResultEnum.NB_BANK_API_ERROR);
......@@ -464,7 +464,7 @@ public class NbBankThirdpartyServiceImpl implements NbBankThirdpartyService {
return data;
} catch (Exception e) {
e.printStackTrace();
log.info("宁波银行接口异常:{}", ExceptionUtils.getStackTrace(e));
}
throw new ServiceSystemException(PerformanceResultEnum.NB_BANK_API_ERROR);
......@@ -546,7 +546,7 @@ public class NbBankThirdpartyServiceImpl implements NbBankThirdpartyService {
return data;
} catch (Exception e) {
e.printStackTrace();
log.info("宁波银行接口异常:{}", ExceptionUtils.getStackTrace(e));
}
throw new ServiceSystemException(PerformanceResultEnum.NB_BANK_API_ERROR);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论