Commit 9b38a8e7 authored by hanfeng's avatar hanfeng

修改实名认证

parent 9826759a
...@@ -30,14 +30,13 @@ public class XCFQPictureParsingImpl implements UserPictureParsing { ...@@ -30,14 +30,13 @@ public class XCFQPictureParsingImpl implements UserPictureParsing {
// private String appcode = "acea1c8811f748b3a65815f11db357c4"; // private String appcode = "acea1c8811f748b3a65815f11db357c4";
private String appcode2 = "ee7710ce92054cae9f6c040f6864e6a7"; private String appcode2 = "ee7710ce92054cae9f6c040f6864e6a7";
/** /**
* 认证相关的数据 * 认证相关的数据
*/ */
private String host = "https://ocridcards.market.alicloudapi.com"; private String host = "https://ocridcards.market.alicloudapi.com";
private String path = "/idimages"; private String path = "/idimages";
private String methd = "POST"; private String method = "POST";
private String imageRet = "code"; private String imageRet = "code";
...@@ -122,7 +121,7 @@ public class XCFQPictureParsingImpl implements UserPictureParsing { ...@@ -122,7 +121,7 @@ public class XCFQPictureParsingImpl implements UserPictureParsing {
Map<String, String> bodys, Map<String, String> bodys,
int type) throws Exception { int type) throws Exception {
HttpResponse response = CertifHttpUtils.doPost(host, path, methd, headers, querys, bodys); HttpResponse response = CertifHttpUtils.doPost(host, path, method, headers, querys, bodys);
log.info("response:"+response); log.info("response:"+response);
StatusLine statusLine = response.getStatusLine(); StatusLine statusLine = response.getStatusLine();
int statusCode = statusLine.getStatusCode(); int statusCode = statusLine.getStatusCode();
......
...@@ -38,7 +38,7 @@ public class XCFQAuthentication implements UserAuthentication { ...@@ -38,7 +38,7 @@ public class XCFQAuthentication implements UserAuthentication {
private String path = "/idcard"; private String path = "/idcard";
private String methd = "GET"; private String method = "GET";
//响应:认证错误码字段名 //响应:认证错误码字段名
private String certifRet = "status"; private String certifRet = "status";
...@@ -72,7 +72,7 @@ public class XCFQAuthentication implements UserAuthentication { ...@@ -72,7 +72,7 @@ public class XCFQAuthentication implements UserAuthentication {
querys.put(idCardName, message.getIdNumber()); querys.put(idCardName, message.getIdNumber());
querys.put(cName, message.getName()); querys.put(cName, message.getName());
log.info("----querys=========" + querys); log.info("----querys=========" + querys);
HttpResponse response = HttpUtils.doGet(hsot, path, methd, headers, querys); HttpResponse response = HttpUtils.doGet(hsot, path, method, headers, querys);
StatusLine statusLine = response.getStatusLine(); StatusLine statusLine = response.getStatusLine();
int statusCode = statusLine.getStatusCode(); int statusCode = statusLine.getStatusCode();
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment