|
|
@@ -82,6 +82,8 @@ public class TencentFaceService implements BizHandler<TencentFaceParam, OcrParam
|
|
|
jsonObject.put("nonce", nonce);
|
|
|
logDto.setUrl(tencentFaceDto.getTicketUrl());
|
|
|
logDto.setRequestParam(JSON.toJSONString(jsonObject));
|
|
|
+ log.info("腾讯人脸识别地址:{}", tencentFaceDto.getTicketUrl());
|
|
|
+ log.info("腾讯人脸请求参数:{}", jsonObject.toJSONString());
|
|
|
String post = HttpClientUtils.post(tencentFaceDto.getTicketUrl(), jsonObject.toJSONString());
|
|
|
|
|
|
JSONObject resultJson = JSON.parseObject(post);
|
|
|
@@ -109,6 +111,10 @@ public class TencentFaceService implements BizHandler<TencentFaceParam, OcrParam
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public static void main(String[] args) {
|
|
|
+ HttpClientUtils.post("https://webhook.site/5dac7d16-77dd-464d-992b-ca488b223369", "hellword");
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
|
|
|
public TencentAuthVO getSign(String type,Long userId, TencentFaceDto tencentFaceDto) {
|