Commit 5d42ec06 authored by youjie's avatar youjie

no message

parent 04c8a102
......@@ -199,16 +199,17 @@
msg.g = query().g
if(oldUserInfo.c==msg.c&&oldUserInfo.t==msg.t&&oldUserInfo.g==msg.g){
setTimeout(() => {
if(localStorage.TakeoutVersion==1)
window.location.href = `guestSign.html`
}, 300);
}else{
localStorage.removeItem("userInfo")
}
}else{
localStorage.TakeoutVersion = 0
msg.TCID = query().TCID
if(userInfo&&userInfo.guestMobile) localStorage.removeItem("userInfo")
if(localStorage.TakeoutVersion) {
localStorage.removeItem("TakeoutVersion")
localStorage.removeItem("userInfo")
}
}
......
......@@ -19,8 +19,10 @@ function getApiUrl() {
erpUploadUrl = "http://upload.oytour.com";
erpViittoFileUrl = "http://imgfile.oytour.com"
}
let TakeoutVersion = 0
if(localStorage.TakeoutVersion&&localStorage.TakeoutVersion==1) TakeoutVersion = 1
let url = {
urlPost: localStorage.TakeoutVersion==0?erpApiUrl:erpApiUrlTakVer,
urlPost: TakeoutVersion==0?erpApiUrl:erpApiUrlTakVer,
urlJava: erpJavaApiUrl,
urlSignalr: urlSignalrUrl,
UploadUrl: erpUploadUrl,
......
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