修改人:邹江涛

修改内容:API映射公共单据
修改时间:2024/12/02
This commit is contained in:
zoujiangtao 2024-12-02 16:42:53 +08:00
parent 19aa54c835
commit 51627d7bcc
1 changed files with 2 additions and 0 deletions

View File

@ -32,6 +32,7 @@ public class ApiService {
private static final Log logger = LogFactory.getLog(ApiService.class); private static final Log logger = LogFactory.getLog(ApiService.class);
public static String getBIPToken(String domainName) { public static String getBIPToken(String domainName) {
logger.info("getBIPToken → 开始调用接口获取token\n域名{}", domainName);
String access_token = null; String access_token = null;
long currentTimeMillis = System.currentTimeMillis(); long currentTimeMillis = System.currentTimeMillis();
try { try {
@ -48,6 +49,7 @@ public class ApiService {
"&timestamp=" + currentTimeMillis + "&timestamp=" + currentTimeMillis +
"&signature=" + signature; "&signature=" + signature;
logger.info("getBIPToken → 构建URL: {}", urlString);
URL url = new URL(urlString); URL url = new URL(urlString);
HttpURLConnection connection = (HttpURLConnection) url.openConnection(); HttpURLConnection connection = (HttpURLConnection) url.openConnection();