fix:登陆死循环
This commit is contained in:
parent
88960372f5
commit
ffb9c8f161
@ -357,8 +357,8 @@
|
|||||||
} else if (obj.event === 'bgm_src') {
|
} else if (obj.event === 'bgm_src') {
|
||||||
window.open("https://bgm.tv/subject/" + obj.data.bgmid)
|
window.open("https://bgm.tv/subject/" + obj.data.bgmid)
|
||||||
} else if (obj.event==='mikan'){
|
} else if (obj.event==='mikan'){
|
||||||
console.log(getParam('bangumiId',obj.data.title))
|
console.log(getParamToUrl('bangumiId',obj.data.title))
|
||||||
window.open('https://mikanani.me/Home/Bangumi/'+getParam('bangumiId',obj.data.title)+'#'+getParam('subgroupid',obj.data.title))
|
window.open('https://mikanani.me/Home/Bangumi/'+getParamToUrl('bangumiId',obj.data.title)+'#'+getParamToUrl('subgroupid',obj.data.title))
|
||||||
} else if (obj.event==='tmp_rss_show'){
|
} else if (obj.event==='tmp_rss_show'){
|
||||||
window.open(obj.data.title)
|
window.open(obj.data.title)
|
||||||
} else if (obj.event==='tmp_rss_del'){
|
} else if (obj.event==='tmp_rss_del'){
|
||||||
|
@ -66,7 +66,6 @@
|
|||||||
$.get("/login/check.do",{share:getParam("share")}, function (data) {
|
$.get("/login/check.do",{share:getParam("share")}, function (data) {
|
||||||
try {
|
try {
|
||||||
let json = JSON.parse(data);
|
let json = JSON.parse(data);
|
||||||
console.log(data)
|
|
||||||
if (json.code === 0) {
|
if (json.code === 0) {
|
||||||
$('#login_text').text('已登录')
|
$('#login_text').text('已登录')
|
||||||
loginStatus = true;
|
loginStatus = true;
|
||||||
|
@ -102,9 +102,11 @@ function Base64() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function getParam(name){
|
function getParam(name){
|
||||||
return getParam(name,window.location.href)
|
let url=window.location.href;
|
||||||
|
return getParamToUrl(name,url)
|
||||||
}
|
}
|
||||||
function getParam(name,url){
|
function getParamToUrl(name,url){
|
||||||
|
console.log(url)
|
||||||
let results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(url);
|
let results = new RegExp('[\?&]' + name + '=([^&#]*)').exec(url);
|
||||||
if (results == null) {
|
if (results == null) {
|
||||||
return null;
|
return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user