main
rong.liu 11 months ago
parent 522015271c
commit 999d9eec22
  1. 6
      users/src/main/java/com/huoran/users/controller/AliRealNameAuthenticationController.java

@ -201,7 +201,7 @@ public class AliRealNameAuthenticationController {
String method = "GET"; String method = "GET";
Map<String, String> headers = new HashMap<String, String>(); Map<String, String> headers = new HashMap<String, String>();
//最后在header中的格式(中间是英文空格)为Authorization:APPCODE 83359fd73fe94948385f570e3c139105 //最后在header中的格式(中间是英文空格)为Authorization:APPCODE 83359fd73fe94948385f570e3c139105
headers.put("Authorization", "APPCODE " + AliRealNameAuthenticationConfig.ALI_API_APPCODE); headers.put("Authorization", "APPCODE " + "5a7f623d06724a4da5806c1fb0544e47");
Map<String, String> querys = new HashMap<String, String>(); Map<String, String> querys = new HashMap<String, String>();
querys.put("ComapnyName", enterpriseCertification.getCompanyName()); querys.put("ComapnyName", enterpriseCertification.getCompanyName());
querys.put("CreditCode", enterpriseCertification.getCreditCode()); querys.put("CreditCode", enterpriseCertification.getCreditCode());
@ -210,7 +210,7 @@ public class AliRealNameAuthenticationController {
String errorMsg = ""; String errorMsg = "";
//查询认证id //查询认证id
QueryWrapper<EnterpriseCertification> queryWrapper = new QueryWrapper<>(); QueryWrapper<EnterpriseCertification> queryWrapper = new QueryWrapper<>();
queryWrapper.eq("account_id", accountId); queryWrapper.eq("open_id", enterpriseCertification.getOpenId());
EnterpriseCertification certification = enterpriseCertificationService.getOne(queryWrapper); EnterpriseCertification certification = enterpriseCertificationService.getOne(queryWrapper);
enterpriseCertification.setId(certification.getId()); enterpriseCertification.setId(certification.getId());
try { try {
@ -252,7 +252,7 @@ public class AliRealNameAuthenticationController {
String method = "GET"; String method = "GET";
Map<String, String> headers = new HashMap<String, String>(); Map<String, String> headers = new HashMap<String, String>();
//最后在header中的格式(中间是英文空格)为Authorization:APPCODE 83359fd73fe94948385f570e3c139105 //最后在header中的格式(中间是英文空格)为Authorization:APPCODE 83359fd73fe94948385f570e3c139105
headers.put("Authorization", "APPCODE " + AliRealNameAuthenticationConfig.ALI_API_APPCODE); headers.put("Authorization", "APPCODE " +"5a7f623d06724a4da5806c1fb0544e47");
Map<String, String> querys = new HashMap<String, String>(); Map<String, String> querys = new HashMap<String, String>();
querys.put("ComapnyName", enterpriseCertification.getCompanyName()); querys.put("ComapnyName", enterpriseCertification.getCompanyName());
querys.put("CreditCode", enterpriseCertification.getCreditCode()); querys.put("CreditCode", enterpriseCertification.getCreditCode());

Loading…
Cancel
Save