This commit is contained in:
quyixiao 2025-03-09 22:38:34 +08:00
parent cb74e7838c
commit b502fb522a
2 changed files with 4 additions and 3 deletions

View File

@ -13,7 +13,7 @@ public class TencentConfig {
/** /**
* 腾讯sdk client初始化 * 腾讯sdk client初始化
*/ */
/* @Bean @Bean
protected FaceidClient getTencentFaceIdClient( protected FaceidClient getTencentFaceIdClient(
@Value("${tencent.face.ak}") String tencentApiKey, @Value("${tencent.face.ak}") String tencentApiKey,
@Value("${tencent.face.sk}") String tencentSecretKey, @Value("${tencent.face.sk}") String tencentSecretKey,
@ -30,5 +30,5 @@ public class TencentConfig {
clientProfile.setHttpProfile(httpProfile); clientProfile.setHttpProfile(httpProfile);
// 实例化要请求产品的client对象,clientProfile是可选的 // 实例化要请求产品的client对象,clientProfile是可选的
return new FaceidClient(cred, "", clientProfile); return new FaceidClient(cred, "", clientProfile);
}*/ }
} }

View File

@ -5,6 +5,7 @@ import com.heyu.api.tencent.request.TIdCardVerificationRequest;
import com.tencentcloudapi.faceid.v20180301.FaceidClient; import com.tencentcloudapi.faceid.v20180301.FaceidClient;
import com.tencentcloudapi.faceid.v20180301.models.IdCardVerificationRequest; import com.tencentcloudapi.faceid.v20180301.models.IdCardVerificationRequest;
import com.tencentcloudapi.faceid.v20180301.models.IdCardVerificationResponse; import com.tencentcloudapi.faceid.v20180301.models.IdCardVerificationResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
/*** /***
@ -16,7 +17,7 @@ import org.springframework.stereotype.Component;
@Component @Component
public class TIdCardVerificationHandle extends TencentBaseHandle<TIdCardVerificationRequest, IdCardVerificationResponse> { public class TIdCardVerificationHandle extends TencentBaseHandle<TIdCardVerificationRequest, IdCardVerificationResponse> {
//@Autowired @Autowired
private FaceidClient client; private FaceidClient client;
@Override @Override