소스 검색

优化代码

java110 5 년 전
부모
커밋
a5e6a69003
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      service-front/src/main/java/com/java110/front/smo/wechatGateway/impl/WechatGatewaySMOImpl.java

+ 2 - 2
service-front/src/main/java/com/java110/front/smo/wechatGateway/impl/WechatGatewaySMOImpl.java

@@ -74,8 +74,8 @@ public class WechatGatewaySMOImpl extends AbstractFrontServiceSMO implements IWe
                 noBindOwnerResponseMessage = WechatConstant.NO_BIND_OWNER_RESPONSE_MESSAGE;
                 noBindOwnerResponseMessage = WechatConstant.NO_BIND_OWNER_RESPONSE_MESSAGE;
             }
             }
             if (!noBindOwnerResponseMessage.contains("wAppId=")) {
             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));
                 }
                 }
             }
             }