增加部分接口
This commit is contained in:
@@ -126,15 +126,12 @@ function commonsProcess(showLoading, httpReqCallback) {
|
||||
|
||||
}).catch(res => {
|
||||
if(res.status==401||res.status==400){
|
||||
storageManage.token(null, true)
|
||||
infoBox.showErrorToast('请登录').then(() => {
|
||||
go.to("PAGES_LOGIN", {}, go.GO_TYPE_RELAUNCH)
|
||||
// storageManage.token(null, true)
|
||||
infoBox.showErrorToast(res.message||'状态码400').then(() => {
|
||||
})
|
||||
}
|
||||
if(res.status==500){
|
||||
storageManage.token(null, true)
|
||||
infoBox.showErrorToast('请登录').then(() => {
|
||||
go.to("PAGES_LOGIN", {}, go.GO_TYPE_RELAUNCH)
|
||||
infoBox.showErrorToast(res.message||'服务器异常').then(() => {
|
||||
})
|
||||
}
|
||||
// if(res&&res.msg){
|
||||
|
||||
Reference in New Issue
Block a user