营业执照OCR更改APPCode

main
rong.liu 10 months ago
parent 2bcfcb9109
commit 2eea6426ab
  1. 3
      nakadai/src/main/java/com/huoran/nakadai/controller/AliRealNameAuthenticationController.java

@ -162,7 +162,8 @@ public class AliRealNameAuthenticationController {
String method = "POST";
Map<String, String> headers = new HashMap<String, String>();
//最后在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<String, String> querys = new HashMap<String, String>();

Loading…
Cancel
Save