From 2eea6426abe68bb5bd333991ed9a7105757510ed Mon Sep 17 00:00:00 2001 From: "rong.liu" Date: Fri, 26 Jan 2024 11:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=90=A5=E4=B8=9A=E6=89=A7=E7=85=A7OCR?= =?UTF-8?q?=E6=9B=B4=E6=94=B9APPCode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/AliRealNameAuthenticationController.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nakadai/src/main/java/com/huoran/nakadai/controller/AliRealNameAuthenticationController.java b/nakadai/src/main/java/com/huoran/nakadai/controller/AliRealNameAuthenticationController.java index 4e6c683..5ce4bcd 100644 --- a/nakadai/src/main/java/com/huoran/nakadai/controller/AliRealNameAuthenticationController.java +++ b/nakadai/src/main/java/com/huoran/nakadai/controller/AliRealNameAuthenticationController.java @@ -162,7 +162,8 @@ public class AliRealNameAuthenticationController { String method = "POST"; Map headers = new HashMap(); //最后在header中的格式(中间是英文空格)为Authorization:APPCODE 83359fd73fe94948385f570e3c139105 - headers.put("Authorization", "APPCODE " + AliRealNameAuthenticationConfig.ALI_API_APPCODE); +// headers.put("Authorization", "APPCODE " + AliRealNameAuthenticationConfig.ALI_API_APPCODE); + headers.put("Authorization", "APPCODE " + "bd4ad25d0e41466eabb31d9baa16a79f"); //根据API的要求,定义相对应的Content-Type headers.put("Content-Type", "application/json; charset=UTF-8"); Map querys = new HashMap();