|
@@ -1,5 +1,9 @@
|
|
|
package com.yonge.toolset.thirdparty.user.realname.provider;
|
|
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.yonge.toolset.base.exception.ThirdpartyException;
|
|
|
+import com.yonge.toolset.thirdparty.user.realname.RealnameAuthenticationPlugin;
|
|
|
+import com.yonge.toolset.utils.http.HttpUtil;
|
|
|
import java.util.HashMap;
|
|
|
import java.util.Map;
|
|
|
|
|
@@ -10,10 +14,8 @@ import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
-import com.alibaba.fastjson.JSONObject;
|
|
|
-import com.yonge.toolset.base.exception.ThirdpartyException;
|
|
|
-import com.yonge.toolset.thirdparty.user.realname.RealnameAuthenticationPlugin;
|
|
|
-import com.yonge.toolset.utils.http.HttpUtil;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
@Service
|
|
|
public class LinkfaceRealnameAuthenticationPlugin implements RealnameAuthenticationPlugin {
|
|
@@ -70,10 +72,11 @@ public class LinkfaceRealnameAuthenticationPlugin implements RealnameAuthenticat
|
|
|
@Override
|
|
|
public boolean verify(String realname, String idcardNo) {
|
|
|
|
|
|
- IdcardValidator idcardValidator = new IdcardValidator();
|
|
|
+ // 通过身份证号获取身份信息(后续需要改造)
|
|
|
+ /*IdcardValidator idcardValidator = new IdcardValidator();
|
|
|
if (idcardValidator.isValidatedAllIdcard(idcardNo)) {
|
|
|
return true;
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
String respJson = "";
|
|
|
HashMap<String, Object> params = new HashMap<String, Object>();
|