|
@@ -113,12 +113,14 @@ fly.interceptors.response.use(
|
|
msg = '网络连接超时'
|
|
msg = '网络连接超时'
|
|
}
|
|
}
|
|
else if (err.status === 401) {
|
|
else if (err.status === 401) {
|
|
- reqCount += 1
|
|
|
|
- if (reqCount < 3) {
|
|
|
|
- console.log("401错误,我需要重新请求+我现在使用的过期token"+ wx.getStorageSync('token'));
|
|
|
|
- wx.clearStorageSync('token')
|
|
|
|
- return fly.request(err.request);
|
|
|
|
- }
|
|
|
|
|
|
+ if (err.request.url.indexOf('mobil') === -1) {
|
|
|
|
+ reqCount += 1
|
|
|
|
+ if (reqCount < 3) {
|
|
|
|
+ console.log("401错误,我需要重新请求+我现在使用的过期token"+ wx.getStorageSync('token'));
|
|
|
|
+ wx.clearStorageSync('token')
|
|
|
|
+ return fly.request(err.request);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|
|
else if (err.status === 502) {
|
|
else if (err.status === 502) {
|