lushuncheng %!s(int64=4) %!d(string=hai) anos
pai
achega
3f21c3a093
Modificáronse 1 ficheiros con 5 adicións e 4 borrados
  1. 5 4
      public/demo.html

+ 5 - 4
public/demo.html

@@ -67,10 +67,11 @@
         window.location.href = `https://m.weibo.cn/feature/openapp?scheme=` + encodeURIComponent(scheme);
       } else {
         if (getCookie("SUB") == "") {
-          alert("未登录");
-          let url = "http://www.weibo.cn/demo.html"; // 要打开的 H5 页面的地址
-          //未登录状态下跳转 scheme:
-          window.location.href = `sinaweibo://login?redirect_scheme` + encodeURIComponent(url);
+          setCookie("SUB", " 1235892217", 7);
+          //   alert("未登录");
+          //   let url = "http://www.weibo.cn/demo.html"; // 要打开的 H5 页面的地址
+          //   //未登录状态下跳转 scheme:
+          //   window.location.href = `sinaweibo://login?redirect_scheme` + encodeURIComponent(url);
         }
         function getQueryString(name) {
           let reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");