jruqwhnt
This commit is contained in:
parent
cb74e7838c
commit
b502fb522a
@ -13,7 +13,7 @@ public class TencentConfig {
|
||||
/**
|
||||
* 腾讯sdk client初始化
|
||||
*/
|
||||
/* @Bean
|
||||
@Bean
|
||||
protected FaceidClient getTencentFaceIdClient(
|
||||
@Value("${tencent.face.ak}") String tencentApiKey,
|
||||
@Value("${tencent.face.sk}") String tencentSecretKey,
|
||||
@ -30,5 +30,5 @@ public class TencentConfig {
|
||||
clientProfile.setHttpProfile(httpProfile);
|
||||
// 实例化要请求产品的client对象,clientProfile是可选的
|
||||
return new FaceidClient(cred, "", clientProfile);
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
@ -5,6 +5,7 @@ import com.heyu.api.tencent.request.TIdCardVerificationRequest;
|
||||
import com.tencentcloudapi.faceid.v20180301.FaceidClient;
|
||||
import com.tencentcloudapi.faceid.v20180301.models.IdCardVerificationRequest;
|
||||
import com.tencentcloudapi.faceid.v20180301.models.IdCardVerificationResponse;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/***
|
||||
@ -16,7 +17,7 @@ import org.springframework.stereotype.Component;
|
||||
@Component
|
||||
public class TIdCardVerificationHandle extends TencentBaseHandle<TIdCardVerificationRequest, IdCardVerificationResponse> {
|
||||
|
||||
//@Autowired
|
||||
@Autowired
|
||||
private FaceidClient client;
|
||||
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user