命令行提交3

This commit is contained in:
zoujiandong
2025-08-05 14:09:12 +08:00
parent 86eb7d47e0
commit 9e01fa0032
3 changed files with 17 additions and 17 deletions
+10 -9
View File
@@ -115,7 +115,7 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
n(res)
}else if (res.data.code == 401 || res.data.code == 403 || res.data.code == 405 || res.data.code == 406) {
if(process.env.UNI_PLATFORM =="h5"){
let video_token = cookie.readCookie('video_token');
let video_token =cookie.readCookie('video_token');
console.log(video_token);
if(video_token){
const {data} = await api.h5Login({
@@ -176,23 +176,24 @@ export const request = (url, data = {}, method = 'post', loading = false, conten
})
n(res)
} else {
if(url.indexOf('/login/hcp')!=-1){
uni.showToast({
title: res.data.message,
icon: 'none',
})
n(res)
}else{
e(res)
let H5url = 'https://dev-wx.igandan.com';
if(window.location.href.indexOf('//dev-casedata.igandan.com') == -1) {
H5url = 'https://wx.igandan.com'
}
window.location.href = H5url + "/hcp/Signup2020online_tologin?back_url=" + encodeURIComponent(window.location.href);
}else{
uni.showToast({
title: res.data.message,
icon: 'none',
});
n(res)
}
}
},
fail: function (err) {