This commit is contained in:
commit
704dae5109
|
@ -196,27 +196,18 @@ const login = () => {
|
||||||
const decodedText = decrypt(encryptedText, ENCODED_KEY);
|
const decodedText = decrypt(encryptedText, ENCODED_KEY);
|
||||||
// console.log("Decrypted Text:", decodedText);
|
// console.log("Decrypted Text:", decodedText);
|
||||||
var tokenU = decodedText;
|
var tokenU = decodedText;
|
||||||
}if else (){
|
|
||||||
|
|
||||||
}
|
|
||||||
// var tokenU = CryptoJS.enc.Utf8.parse(routers.query.token);
|
|
||||||
// var token = getCookie("lytoken");
|
|
||||||
// tokenU = "6b0e380b4a8f46baae4923f83faf670d";
|
|
||||||
if (tokenU) {
|
|
||||||
document.cookie = `lytoken=${tokenU}`;
|
document.cookie = `lytoken=${tokenU}`;
|
||||||
var token = getCookie("lytoken");
|
var token = getCookie("lytoken");
|
||||||
if (!token) {
|
tools.data.set("token", token);
|
||||||
|
tools.data.set("type", 2);
|
||||||
|
} else {
|
||||||
|
var tokenPd = getCookie("lytoken");
|
||||||
|
if (!tokenPd) {
|
||||||
window.location.href =
|
window.location.href =
|
||||||
"http://220.191.238.50:996/api/login?returnURL=" +
|
"http://220.191.238.50:996/api/login?returnURL=" +
|
||||||
window.location.href;
|
window.location.href;
|
||||||
} else {
|
} else {
|
||||||
tools.data.set("token", token);
|
|
||||||
tools.data.set("type", 2);
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
window.location.href =
|
|
||||||
"http://220.191.238.50:996/api/login?returnURL=" +
|
|
||||||
window.location.href;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue