Browse Source

修改E签宝生产环境appid

qxm 4 years ago
parent
commit
938497ad3d

+ 8 - 4
suishenbang-api/src/main/resources/application-dev.yml

@@ -110,10 +110,14 @@ esign:
 #  SaaS版
 #  appId: 7438822756
 #  appSecret: fb4f6df1dc934c06e2c84e87e8a3546f
-#  PaaS版
-  appId: 7438823605
-  appSecret: f3dd308ab7e9e1d307ffeddddc3d5b53
-  serviceUrl: https://smlopenapi.esign.cn
+#  PaaS版测试
+#  appId: 7438823605
+#  appSecret: f3dd308ab7e9e1d307ffeddddc3d5b53
+#  serviceUrl: https://smlopenapi.esign.cn
+  #  PaaS版正式
+  appId: 5111637536
+  appSecret: ee1321fd61ef055cbfff588085ce0cd2
+  serviceUrl: https://openapi.esign.cn
 #  个人认证回调url
   personNotifyUrl: http://fanfanweb.iask.in/api/eSign/updateUserIsAuthentication
 #  企业认证成功回调url

+ 3 - 1
suishenbang-api/src/main/resources/application-prod.yml

@@ -113,9 +113,11 @@ esign:
   #  PaaS版
 #  appId: 7438819026 测试环境
 #  appSecret: 01df3d5154ea1f77fa64c415fb79c52f
+#  serviceUrl: https://smlopenapi.esign.cn
+  #  PaaS版正式
   appId: 5111637536
   appSecret: ee1321fd61ef055cbfff588085ce0cd2
-  serviceUrl: https://smlopenapi.esign.cn
+  serviceUrl: https://openapi.esign.cn
   #  个人认证回调url
   personNotifyUrl: http://suishenbang.nipponpaint.com.cn/wxportal-api/eSign/updateUserIsAuthentication
   #  企业认证成功回调url

+ 7 - 3
suishenbang-api/src/main/resources/application-test.yml

@@ -109,9 +109,13 @@ esign:
 #  appId: 7438822756
 #  appSecret: fb4f6df1dc934c06e2c84e87e8a3546f
 #  PaaS版
-  appId: 7438823605
-  appSecret: f3dd308ab7e9e1d307ffeddddc3d5b53
-  serviceUrl: https://smlopenapi.esign.cn
+#  appId: 7438823605
+#  appSecret: f3dd308ab7e9e1d307ffeddddc3d5b53
+#  serviceUrl: https://smlopenapi.esign.cn
+  #  PaaS版正式
+  appId: 5111637536
+  appSecret: ee1321fd61ef055cbfff588085ce0cd2
+  serviceUrl: https://openapi.esign.cn
 #  个人认证回调url
   personNotifyUrl: http://ss.libang.dgtis.com/wxportal-api/eSign/updateUserIsAuthentication
 #  企业认证成功回调url

+ 7 - 3
suishenbang-api/src/main/resources/application-uat.yml

@@ -110,9 +110,13 @@ esign:
   #  appId: 7438822756
   #  appSecret: fb4f6df1dc934c06e2c84e87e8a3546f
   #  PaaS版
-  appId: 7438819026
-  appSecret: 01df3d5154ea1f77fa64c415fb79c52f
-  serviceUrl: https://smlopenapi.esign.cn
+#  appId: 7438819026
+#  appSecret: 01df3d5154ea1f77fa64c415fb79c52f
+#  serviceUrl: https://smlopenapi.esign.cn
+  #  PaaS版正式
+  appId: 5111637536
+  appSecret: ee1321fd61ef055cbfff588085ce0cd2
+  serviceUrl: https://openapi.esign.cn
   #  个人认证回调url
   personNotifyUrl: http://suishenbangtest.nipponpaint.com.cn/wxportal-api/eSign/updateUserIsAuthentication
   #  企业认证成功回调url

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

@@ -36,10 +36,14 @@ public class ESignHttpUtil {
         String str = doPost(url,param.toJSONString());
         JSONObject json =JSONObject.parseObject(str);
         int code = json.getInteger("code");
-        if(code!=0){
-            throw new ESignException(code,url,json.getString("message"));
+        if(code==30500156) {
+            return null;
+        }else {
+            if (code != 0) {
+                throw new ESignException(code, url, json.getString("message"));
+            }
+            return json;
         }
-        return json;
     }
 
     /**
@@ -57,7 +61,7 @@ public class ESignHttpUtil {
         int code = json.getInteger("code");
         if (code==53000001){
           return null;
-        }else {
+        }else{
             if (code != 0) {
                 throw new ESignException(code, url, json.getString("message"));
             }