james 8 months ago
parent
commit
4cd77c617b

+ 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);
                 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;
+                    String sendUrl = http+constant.call_back_domain+constant.WE_CHAT_INDEX+"?flag=true";
                     response.sendRedirect(URLDecoder.decode(sendUrl, "UTF-8"));
                 }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;
+                    String sendUrl = http+constant.call_back_domain+constant.WE_CHAT_LOGIN+"?flag=true";
                     response.sendRedirect(URLDecoder.decode(sendUrl, "UTF-8"));
                 }
             }catch (IOException e){
@@ -144,7 +144,7 @@ public class WeChatController {
 
         }else{
             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"));
             }catch (IOException e){
                 throw new BusinessException(e.getMessage());