Compare commits
2 Commits
956d5b5e3a
...
8b7b27d4ff
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b7b27d4ff | ||
|
|
6717bd10e7 |
File diff suppressed because one or more lines are too long
@ -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');
|
||||||
alert(video_token)
|
console.log(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;
|
||||||
consoe.log(result);
|
console.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 {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user