|
@@ -1,7 +1,5 @@
|
|
package com.ematou.wxbase;
|
|
package com.ematou.wxbase;
|
|
|
|
|
|
-import com.ematou.wxbase.service.EidTokenRecordService;
|
|
|
|
-import com.ematou.wxbase.service.TokenRecordService;
|
|
|
|
import com.tencentcloudapi.common.Credential;
|
|
import com.tencentcloudapi.common.Credential;
|
|
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
|
|
import com.tencentcloudapi.common.exception.TencentCloudSDKException;
|
|
import com.tencentcloudapi.common.profile.ClientProfile;
|
|
import com.tencentcloudapi.common.profile.ClientProfile;
|
|
@@ -12,7 +10,6 @@ import com.tencentcloudapi.faceid.v20180301.models.GetEidTokenResponse;
|
|
import org.junit.jupiter.api.Test;
|
|
import org.junit.jupiter.api.Test;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -25,7 +22,7 @@ import org.springframework.boot.test.context.SpringBootTest;
|
|
@SpringBootTest
|
|
@SpringBootTest
|
|
public class EidTokenTest {
|
|
public class EidTokenTest {
|
|
|
|
|
|
- private static final Logger logger = LoggerFactory.getLogger(TokenRecordService.class);
|
|
|
|
|
|
+ Logger log = LoggerFactory.getLogger(EidTokenTest.class);
|
|
|
|
|
|
private final static String secretId = "AKIDIRYotrdCZnqkT0LTVzJSQFrGmLoALLJA";
|
|
private final static String secretId = "AKIDIRYotrdCZnqkT0LTVzJSQFrGmLoALLJA";
|
|
private final static String secretKey = "jICxWrJchWBg8RYO2RZYLwMXh0bR6imd";
|
|
private final static String secretKey = "jICxWrJchWBg8RYO2RZYLwMXh0bR6imd";
|
|
@@ -51,7 +48,7 @@ public class EidTokenTest {
|
|
// 输出json格式的字符串回包
|
|
// 输出json格式的字符串回包
|
|
System.out.println(GetEidTokenResponse.toJsonString(resp));
|
|
System.out.println(GetEidTokenResponse.toJsonString(resp));
|
|
} catch (TencentCloudSDKException e) {
|
|
} catch (TencentCloudSDKException e) {
|
|
- logger.error("腾讯云 SDK Error", e);
|
|
|
|
|
|
+ log.error("腾讯云 SDK Error", e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|