提交内容:BIP提交接口调用

备注:BIP提交接口调用
提交人:邹江涛
This commit is contained in:
zoujiangtao 2024-12-19 10:07:00 +08:00
parent 88b1e93ec5
commit f2c37b0212
1 changed files with 3 additions and 2 deletions

View File

@ -41,6 +41,7 @@ public class ApiService {
private static final String APP_KEY = "22564a240d3140d0b15582aca71a748c"; private static final String APP_KEY = "22564a240d3140d0b15582aca71a748c";
private static final String API_ENDPOINT = "/iuap-api-auth/open-auth/selfAppAuth/getAccessToken"; private static final String API_ENDPOINT = "/iuap-api-auth/open-auth/selfAppAuth/getAccessToken";
private static final RestTemplate restTemplate = new RestTemplate(); private static final RestTemplate restTemplate = new RestTemplate();
public static String getBIPToken(String domainName) { public static String getBIPToken(String domainName) {
String token = "获取失败"; String token = "获取失败";
try { try {
@ -265,10 +266,10 @@ public class ApiService {
} }
dynamicObjects.add(dynamic); dynamicObjects.add(dynamic);
logger.info("付款处理(支付结果) → BIP推送接口 → 成功\n成功单据编号{}\n推送成功接口返回数据:{}", dynamic.getString("billno"), saveResponseBody); logger.info("付款处理(支付结果) → BIP推送接口 → 成功\n成功单据编号{}\n成功请求体:{}\n推送成功接口返回数据:{}", dynamic.getString("billno"), saveRequestBody, saveResponseBody);
result = "推送 → 付款处理(支付结果) → 成功"; result = "推送 → 付款处理(支付结果) → 成功";
} else { } else {
logger.info("付款处理(支付结果) → BIP推送接口 → 失败\n失败单据编号{}\n推送失败接口返回数据:{}", dynamic.getString("billno"), saveResponseBody); logger.info("付款处理(支付结果) → BIP推送接口 → 失败\n失败单据编号{}\n失败请求体:{}\n推送失败接口返回数据:{}", dynamic.getString("billno"), saveRequestBody, saveResponseBody);
result = "推送 → 付款处理(支付结果) → 失败"; result = "推送 → 付款处理(支付结果) → 失败";
} }
break; break;