From 51d273314e1e2ee2aec1998b3e0efd73181d8cc5 Mon Sep 17 00:00:00 2001 From: duan <1004387497@qq.com> Date: Wed, 23 Oct 2024 15:28:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=A0=81400=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E8=B7=B3=E8=BD=AC=E7=99=BB=E5=BD=95=E3=80=82?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E9=A1=B6=E9=83=A8=E6=8E=A5=E5=8F=A3=E8=BF=94?= =?UTF-8?q?=E5=9B=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http/yskApi/http.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/yskApi/http.js b/http/yskApi/http.js index 81590ba..2ebc105 100644 --- a/http/yskApi/http.js +++ b/http/yskApi/http.js @@ -75,6 +75,7 @@ function commonsProcess(showLoading, httpReqCallback) { } = httpData // 避免混淆重新命名 let bodyData = data + console.log(statusCode,1111111111) if (statusCode == 500) { isShowErrorToast = true return Promise.reject(bodyData) // 跳转到catch函数 @@ -124,7 +125,7 @@ function commonsProcess(showLoading, httpReqCallback) { return Promise.resolve(bodyData) }).catch(res => { - if(res.status==401){ + if(res.status==401||res.status==400){ storageManage.token(null, true) infoBox.showErrorToast('请登录').then(() => { go.to("PAGES_LOGIN", {}, go.GO_TYPE_RELAUNCH) @@ -183,7 +184,6 @@ function request(args) { } = args let headerObject = {} // headerObject[appConfig.tokenKey] = storageManage.token() - return commonsProcess(showLoading, () => { return uni.request( Object.assign({