main
rong.liu 11 months ago
parent 30bdb3eb49
commit e622135443
  1. 4
      users/src/main/java/com/huoran/users/config/AliRealNameAuthenticationConfig.java
  2. 2
      users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.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";

@ -244,7 +244,7 @@ public class AliRealNameAuthenticationController {
String method = "GET";
Map<String, String> headers = new HashMap<String, String>();
//最后在header中的格式(中间是英文空格)为Authorization:APPCODE 83359fd73fe94948385f570e3c139105
headers.put("Authorization", "APPCODE " + "5a7f623d06724a4da5806c1fb0544e47");
headers.put("Authorization", "APPCODE " +AliRealNameAuthenticationConfig.ALI_API_APPCODE);
Map<String, String> querys = new HashMap<String, String>();
querys.put("ComapnyName", enterpriseCertification.getCompanyName());
querys.put("CreditCode", enterpriseCertification.getCreditCode());

Loading…
Cancel
Save