From 997036b27927bcc1e9207a40b7a69c106a10f30c Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期三, 31 七月 2024 15:49:52 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/zbomyoujia

---
 wechat_staff/utils/request.js |   14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/wechat_staff/utils/request.js b/wechat_staff/utils/request.js
index 87ecfb4..8751ff4 100644
--- a/wechat_staff/utils/request.js
+++ b/wechat_staff/utils/request.js
@@ -6,7 +6,7 @@
     wx.showLoading()
     number++
   }
-  return new Promise(resolve => {
+  return new Promise(resolve=> {
     wx.request({
       url: baseUrl + options.url,
       data: options.data || {},
@@ -21,10 +21,14 @@
           resolve(res.data || true)
         } else {
           if (res.data.code && (res.data.code == 5112 || res.data.code == 5111)) {
-            wx.navigateTo({
-              url: '/pages/login/index',
-            })
-          }
+            if(options.data && options.data.goLogin){
+              console.log("==================")
+              wx.navigateTo({
+                        url: '/pages/login/index',
+              })
+            } 
+          } 
+          resolve(res) 
           res.data.message && wx.showToast({
             title: res.data.message || '鍙戠敓閿欒',
             icon: 'none'

--
Gitblit v1.9.3