|
@@ -73,6 +73,7 @@
|
|
|
window.location.href = `https://m.weibo.cn/feature/openapp?scheme=` + encodeURIComponent(scheme);
|
|
window.location.href = `https://m.weibo.cn/feature/openapp?scheme=` + encodeURIComponent(scheme);
|
|
|
} else {
|
|
} else {
|
|
|
if (getCookie("SUB") == "") {
|
|
if (getCookie("SUB") == "") {
|
|
|
|
|
+ alert(getQueryString("sub"));
|
|
|
setCookie("SUB", getQueryString("sub"), 7);
|
|
setCookie("SUB", getQueryString("sub"), 7);
|
|
|
// alert("未登录");
|
|
// alert("未登录");
|
|
|
// let url = "http://www.weibo.cn/demo.html"; // 要打开的 H5 页面的地址
|
|
// let url = "http://www.weibo.cn/demo.html"; // 要打开的 H5 页面的地址
|
|
@@ -123,7 +124,7 @@
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
type: "POST",
|
|
type: "POST",
|
|
|
url: "http://www.weibo.cn/index/index/checkLogin",
|
|
url: "http://www.weibo.cn/index/index/checkLogin",
|
|
|
- data: JSON.stringify({ cookie: document.cookie }),
|
|
|
|
|
|
|
+ data: JSON.stringify({ cookie: getQueryString("sub") }),
|
|
|
dataType: "json",
|
|
dataType: "json",
|
|
|
xhrFields: {
|
|
xhrFields: {
|
|
|
withCredentials: true, //允许跨域带Cookie
|
|
withCredentials: true, //允许跨域带Cookie
|