java110 лет назад: 3
Родитель
Сommit
73cff1fa94

+ 10 - 1
service-api/src/main/java/com/java110/api/smo/staff/impl/StaffAuthSMOImpl.java

@@ -108,7 +108,16 @@ public class StaffAuthSMOImpl extends DefaultAbstractComponentSMO implements ISt
 
         ResponseEntity<String> responseEntity = this.callCenterService(restTemplate, pd, paramAuth.toJSONString(),
                 "/staff/updateStaffAppAuth", HttpMethod.POST);
-        url = MappingCache.getValue("OWNER_WECHAT_URL")+"/#/?wAppId="+smallWeChatDto.getAppId();
+        url = MappingCache.getValue("OWNER_WECHAT_URL");
+        if(url.contains("/#/")){
+            if(url.contains("?")){
+                url += ("&wAppId="+smallWeChatDto.getAppId());
+            }else{
+                url += ("?wAppId="+smallWeChatDto.getAppId());
+            }
+        }else{
+            url += ("/#/?wAppId="+smallWeChatDto.getAppId());
+        }
         return ResultVo.redirectPage(url);
 
     }