Przeglądaj źródła

E签宝认证接口修改只返回认证地址

qxm 4 lat temu
rodzic
commit
fe7381e8af

+ 2 - 3
suishenbang-wxportal/suishenbang-wxportal-common/src/main/java/com/dgtly/wxportal/service/impl/EsignOrganRealVerifyServiceImpl.java

@@ -32,10 +32,9 @@ public class EsignOrganRealVerifyServiceImpl implements IEsignOrganRealVerifySer
     @Override
     public String organRealVerify(String accountId, String agentAccountId) {
         JSONObject json = buildParam(accountId,agentAccountId);
-//        json.put("accountId", accountId);
-//        json.put("agentAccountId", agentAccountId);
         JSONObject jsonObject = eSignHttpUtil.doPostGetJson(ESignUrl.OrgIdentityUrl, json, accountId);
-        return jsonObject.toJSONString();
+        JSONObject result = (JSONObject)jsonObject.get("data");
+        return result.get("shortLink").toString();
     }
 
     private JSONObject buildParam(String accountId, String agentAccountId) {

+ 2 - 1
suishenbang-wxportal/suishenbang-wxportal-common/src/main/java/com/dgtly/wxportal/service/impl/EsignPersonReaLnVerifyServiceImpl.java

@@ -34,7 +34,8 @@ public class EsignPersonReaLnVerifyServiceImpl implements IEsignPersonRealnVerif
     public String personRealnVerify(String accountId) {
         JSONObject json = buildParam(accountId, "");
         JSONObject jsonObject = eSignHttpUtil.doPostGetJson(ESignUrl.IndivIdentityUrl, json, accountId);
-        return jsonObject.toJSONString();
+        JSONObject result = (JSONObject)jsonObject.get("data");
+        return result.get("shortLink").toString();
     }
 
     private JSONObject buildParam(String accountId, String receiveUrlMobileNo) {