Browse Source

Accept Merge Request #33: (develop-wan -> master)

Merge Request: 修复微信pc浏览器可以退房

Created By: @万新亮
Accepted By: @万新亮
URL: https://chuanghaikeji.coding.net/p/smarCampus/d/iHotel_student_houtai/git/merge/33?initial=true
万新亮 1 year ago
parent
commit
6bb83e3d59
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/java/com/template/common/utils/HttpUtils.java

+ 1 - 1
src/main/java/com/template/common/utils/HttpUtils.java

@@ -120,7 +120,7 @@ public class HttpUtils {
      */
      */
     public static boolean checkAgentIsMobile(String ua) {
     public static boolean checkAgentIsMobile(String ua) {
         String[] deviceArray = new String[] { "android", "iphone", "ipod",
         String[] deviceArray = new String[] { "android", "iphone", "ipod",
-                "ipad", "blackberry", "ucweb", "windows phone" };
+                "ipad", "blackberry", "ucweb", "windows phone","wechat" };
         if (ua == null) {
         if (ua == null) {
             return false;
             return false;
         }
         }