From 6b44359d8a1095db6f326341e8bdbfc0be7b7cf0 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期日, 22 八月 2021 17:10:20 +0800
Subject: [PATCH] 优化代码

---
 service-front/src/main/java/com/java110/front/smo/wechatGateway/impl/WechatGatewaySMOImpl.java |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/service-front/src/main/java/com/java110/front/smo/wechatGateway/impl/WechatGatewaySMOImpl.java b/service-front/src/main/java/com/java110/front/smo/wechatGateway/impl/WechatGatewaySMOImpl.java
old mode 100644
new mode 100755
index f67f9b8..f55f1cf
--- a/service-front/src/main/java/com/java110/front/smo/wechatGateway/impl/WechatGatewaySMOImpl.java
+++ b/service-front/src/main/java/com/java110/front/smo/wechatGateway/impl/WechatGatewaySMOImpl.java
@@ -74,8 +74,14 @@
                 noBindOwnerResponseMessage = WechatConstant.NO_BIND_OWNER_RESPONSE_MESSAGE;
             }
             if (!noBindOwnerResponseMessage.contains("wAppId=")) {
-                if (noBindOwnerResponseMessage.indexOf("?") > 0) {
-                    noBindOwnerResponseMessage += ("&wAppId=" +WechatFactory.getAppId(wId));
+                if (noBindOwnerResponseMessage.indexOf("W_APP_ID") > 0) {
+                    noBindOwnerResponseMessage = noBindOwnerResponseMessage.replace("W_APP_ID", "wAppId=" + WechatFactory.getAppId(wId));
+                } else {
+                    if (noBindOwnerResponseMessage.indexOf("?") > -1) {
+                        noBindOwnerResponseMessage += ("&wAppId=" + WechatFactory.getAppId(wId));
+                    } else {
+                        noBindOwnerResponseMessage += ("?wAppId=" + WechatFactory.getAppId(wId));
+                    }
                 }
             }
 

--
Gitblit v1.8.0