浏览代码

Merge branch 'usky-zyj' of uskycloud/usky-modules into server-165

James 10 月之前
父节点
当前提交
27d333f1f7

+ 3 - 3
service-iot/service-iot-biz/src/main/java/com/usky/iot/controller/web/WeChatController.java

@@ -131,11 +131,11 @@ public class WeChatController {
                 MceMbuser one = mceMbuserService.getOne(queryWrapper);
                 MceMbuser one = mceMbuserService.getOne(queryWrapper);
                 if(one != null){
                 if(one != null){
                     //String sendUrl = http+constant.call_back_domain+constant.WE_CHAT_INDEX+"?openId="+one.getOpenid();
                     //String sendUrl = http+constant.call_back_domain+constant.WE_CHAT_INDEX+"?openId="+one.getOpenid();
-                    String sendUrl = http+constant.call_back_domain+constant.WE_CHAT_INDEX;
+                    String sendUrl = http+constant.call_back_domain+constant.WE_CHAT_INDEX+"?flag=true";
                     response.sendRedirect(URLDecoder.decode(sendUrl, "UTF-8"));
                     response.sendRedirect(URLDecoder.decode(sendUrl, "UTF-8"));
                 }else{
                 }else{
                     //String sendUrl = http+constant.call_back_domain+constant.WE_CHAT_LOGIN+"?openId="+openId;
                     //String sendUrl = http+constant.call_back_domain+constant.WE_CHAT_LOGIN+"?openId="+openId;
-                    String sendUrl = http+constant.call_back_domain+constant.WE_CHAT_LOGIN;
+                    String sendUrl = http+constant.call_back_domain+constant.WE_CHAT_LOGIN+"?flag=true";
                     response.sendRedirect(URLDecoder.decode(sendUrl, "UTF-8"));
                     response.sendRedirect(URLDecoder.decode(sendUrl, "UTF-8"));
                 }
                 }
             }catch (IOException e){
             }catch (IOException e){
@@ -144,7 +144,7 @@ public class WeChatController {
 
 
         }else{
         }else{
             try{
             try{
-                String sendUrl = http+constant.call_back_domain+constant.WE_CHAT_LOGIN;
+                String sendUrl = http+constant.call_back_domain+constant.WE_CHAT_LOGIN+"?flag=true";
                 response.sendRedirect(URLDecoder.decode(sendUrl, "UTF-8"));
                 response.sendRedirect(URLDecoder.decode(sendUrl, "UTF-8"));
             }catch (IOException e){
             }catch (IOException e){
                 throw new BusinessException(e.getMessage());
                 throw new BusinessException(e.getMessage());