Sfoglia il codice sorgente

随身邦 E签宝 接口请求相关 调整

qxp 4 anni fa
parent
commit
dc407b82e2

+ 1 - 6
suishenbang-api/src/test/java/test/MyTest.java

@@ -22,12 +22,7 @@ public class MyTest {
     @Test
     public void test(){
         JSONObject json = new JSONObject();
-        json.put("thirdPartyUserId","18638353809");
-        json.put("name","屈星鹏");
-        json.put("idType","CRED_PSN_CH_IDCARD");
-        json.put("idNumber","410304199209191012");
-        json.put("mobile","18638353809");
-        String s=  eSignHttpUtil.doPost(ESignUrl.CreatePersonalAccount,json);
+        String s=  eSignHttpUtil.doPost(ESignUrl.GetPersonalAddress,json);
         System.out.println(s);
 
     }

+ 1 - 4
suishenbang-wxportal/suishenbang-wxportal-common/src/main/java/com/dgtly/wxportal/utils/ESign/ESignHttpUtil.java

@@ -34,10 +34,7 @@ public class ESignHttpUtil {
         return doPost(url,param.toJSONString());
     }
 
-    public String doPost(ESignUrl eurl, JSONObject param){
-        String url = eurl.getUrl();
-        return doPost(url,param.toJSONString());
-    }
+
     /**
      * 向指定 URL 发送POST方法的请求
      *

+ 1 - 0
suishenbang-wxportal/suishenbang-wxportal-common/src/main/java/com/dgtly/wxportal/utils/ESign/ESignUrl.java

@@ -13,6 +13,7 @@ public enum ESignUrl {
     //获取token方法
     AccessToken("/v1/oauth2/access_token?appId=%s&secret=%s&grantType=client_credentials")
     ,CreatePersonalAccount("/v1/accounts/createByThirdPartyUserId")
+    ,GetPersonalAddress("/v2/identity/auth/web/%s/indivIdentityUrl")
     ;
     private String url;
     private ESignConfig eSignConfig ;