Commit daa47b95 authored by Mac's avatar Mac

没登录的处理

parent 1cd28c12
...@@ -180,10 +180,18 @@ ...@@ -180,10 +180,18 @@
try { try {
userInfo = JSON.parse(localStorage.u); userInfo = JSON.parse(localStorage.u);
if (!userInfo.customerId) { if (!userInfo.customerId) {
userInfo = {
token:'token',
accountId:'-1'
}
login=false login=false
// window.location.href = 'https://activity.oytour.com/html/login.html'; // window.location.href = 'https://activity.oytour.com/html/login.html';
} }
} catch (e) { } catch (e) {
userInfo = {
token:'token',
accountId:'-1'
}
// window.location.href = 'https://activity.oytour.com/html/login.html'; // window.location.href = 'https://activity.oytour.com/html/login.html';
login=false login=false
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment