Compare commits

..

No commits in common. "8b7b27d4ffac1478ef4ec0338c9fc57c6c0825bc" and "956d5b5e3a289a88b2065a9304645d95073c2e14" have entirely different histories.

2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -94,13 +94,13 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
} else if (res.data.code == 401 || res.data.code == 403 || res.data.code == 405 || res.data.code == 406) { } else if (res.data.code == 401 || res.data.code == 403 || res.data.code == 405 || res.data.code == 406) {
if(process.env.UNI_PLATFORM =="h5"){ if(process.env.UNI_PLATFORM =="h5"){
let video_token = cookie.readCookie('video_token'); let video_token = cookie.readCookie('video_token');
console.log(video_token); alert(video_token)
if(video_token){ if(video_token){
const res = await api.h5Login({ const res = await api.h5Login({
token: video_token token: video_token
}); });
let result = res.data.data; let result = res.data.data;
console.log(result); consoe.log(result);
if (window.location.href.indexOf('//casedata.igandan.com')>-1) { if (window.location.href.indexOf('//casedata.igandan.com')>-1) {
uni.setStorageSync("AUTH_TOKEN_CASEDATA",result.token); uni.setStorageSync("AUTH_TOKEN_CASEDATA",result.token);
} else { } else {