From e622135443ee9c6670cd24622e6c79b7390d6dd0 Mon Sep 17 00:00:00 2001 From: "rong.liu" Date: Fri, 22 Dec 2023 11:14:38 +0800 Subject: [PATCH] commit --- .../huoran/users/config/AliRealNameAuthenticationConfig.java | 4 ++-- .../users/controller/AliRealNameAuthenticationController.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/users/src/main/java/com/huoran/users/config/AliRealNameAuthenticationConfig.java b/users/src/main/java/com/huoran/users/config/AliRealNameAuthenticationConfig.java index b993e81..6465105 100644 --- a/users/src/main/java/com/huoran/users/config/AliRealNameAuthenticationConfig.java +++ b/users/src/main/java/com/huoran/users/config/AliRealNameAuthenticationConfig.java @@ -22,8 +22,8 @@ public class AliRealNameAuthenticationConfig { public static final String ALI_API_PATH = "/rest/160601/ocr/ocr_idcard.json"; -// public static final String ALI_API_APPCODE = "4c22c2b34b2d4b5aaa57186a49aa3a4c"; - public static final String ALI_API_APPCODE = "62512c9aa7714735a182bb08a0173f22"; + public static final String ALI_API_APPCODE = "4c22c2b34b2d4b5aaa57186a49aa3a4c"; +// public static final String ALI_API_APPCODE = "62512c9aa7714735a182bb08a0173f22"; public static final String ALI_IDCHECK_HOST = "https://sxidcheck.market.alicloudapi.com"; public static final String ALI_IDCHECK_PATH = "/idcard/check"; diff --git a/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java b/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java index 846b9ea..3ef3cf8 100644 --- a/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java +++ b/users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java @@ -244,7 +244,7 @@ public class AliRealNameAuthenticationController { String method = "GET"; Map headers = new HashMap(); //最后在header中的格式(中间是英文空格)为Authorization:APPCODE 83359fd73fe94948385f570e3c139105 - headers.put("Authorization", "APPCODE " + "5a7f623d06724a4da5806c1fb0544e47"); + headers.put("Authorization", "APPCODE " +AliRealNameAuthenticationConfig.ALI_API_APPCODE); Map querys = new HashMap(); querys.put("ComapnyName", enterpriseCertification.getCompanyName()); querys.put("CreditCode", enterpriseCertification.getCreditCode());