parent
19aa54c835
commit
51627d7bcc
|
@ -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 {
|
||||||
"×tamp=" + currentTimeMillis +
|
"×tamp=" + 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();
|
||||||
|
|
Loading…
Reference in New Issue