Browse Source

Merge branch 'master' into feature_longhu

longhu 15 hours ago
parent
commit
fab6edc0b6
1 changed files with 6 additions and 0 deletions
  1. 6 0
      src/main/java/com/hr/externelSystem/TencentFaceService.java

+ 6 - 0
src/main/java/com/hr/externelSystem/TencentFaceService.java

@@ -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) {