zhoufan лет назад: 7
Родитель
Сommit
778d99c6d4
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      WebChat/appindex.html

+ 1 - 2
WebChat/appindex.html

@@ -31,12 +31,11 @@
31 31
                     success: function (data) {
32 32
                         if (data.state.toLowerCase() == "success") {
33 33
                             helper.cookies.set("openid", data.data, 7);
34
-                            setTimeout('gourl()', 500);
35 34
                         }
36 35
                     }
37 36
                 });
38 37
             }
39
-            if (!openid) {
38
+            if (!helper.cookies.get("openid")) {
40 39
                 window.location.replace("html/error.html?r=" + Math.random());
41 40
             }
42 41
         }