| | |
| | | package com.panzhihua.common.utlis; |
| | | |
| | | import com.tencentcloudapi.common.Credential; |
| | | import com.tencentcloudapi.common.exception.TencentCloudSDKException; |
| | | import com.tencentcloudapi.common.profile.ClientProfile; |
| | | import com.tencentcloudapi.common.profile.HttpProfile; |
| | | import com.tencentcloudapi.common.exception.TencentCloudSDKException; |
| | | import com.tencentcloudapi.faceid.v20180301.FaceidClient; |
| | | import com.tencentcloudapi.faceid.v20180301.models.*; |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | @Slf4j |
| | | public class TencentUtils { |
| | | |
| | | |
| | | private static final String secretId = "AKIDCG5h4EArJVTCesseAQQCiyzlIZicHgpk"; |
| | | private static final String secretKey = "jCPM5appZ4KK4YrvjHaeS0JNCl5C4g5E"; |
| | |
| | | |
| | | /** |
| | | * 获取用户EidToken接口 |
| | | * @param name 姓名 |
| | | * @param idCard 身份证号 |
| | | * @return 调用结果 |
| | | * |
| | | * @param name |
| | | * 姓名 |
| | | * @param idCard |
| | | * 身份证号 |
| | | * @return 调用结果 |
| | | */ |
| | | public static String getEidToken(String name,String idCard){ |
| | | try{ |
| | | public static String getEidToken(String name, String idCard) { |
| | | try { |
| | | Credential cred = new Credential(secretId, secretKey); |
| | | |
| | | HttpProfile httpProfile = new HttpProfile(); |
| | |
| | | |
| | | /** |
| | | * 获取用户核身结果接口 |
| | | * @param eidToken 用户token |
| | | * @return 调用结果 |
| | | * |
| | | * @param eidToken |
| | | * 用户token |
| | | * @return 调用结果 |
| | | */ |
| | | public static String getEidResult(String eidToken){ |
| | | try{ |
| | | public static String getEidResult(String eidToken) { |
| | | try { |
| | | Credential cred = new Credential(secretId, secretKey); |
| | | HttpProfile httpProfile = new HttpProfile(); |
| | | httpProfile.setEndpoint(url); |
| | |
| | | } |
| | | return ""; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | } |