|  | @@ -46,13 +46,14 @@ module.exports = function (options: any) {
 | 
	
		
			
				|  |  |              // 'x-token': 'x-token'
 | 
	
		
			
				|  |  |            },
 | 
	
		
			
				|  |  |        success: function (res: any) {
 | 
	
		
			
				|  |  | -        if (res.data.code !== 200) {
 | 
	
		
			
				|  |  | +        const otherCode = [5435, 5436, 5437, 5439, 5442, 5443, 5408, 5427, 5432];
 | 
	
		
			
				|  |  | +        if (res.data.code !== 200 && !otherCode.includes(res.data.code)) {
 | 
	
		
			
				|  |  |            if (res.data.code == 5000 || res.data.code == 403) {
 | 
	
		
			
				|  |  |              wx.setStorageSync("token", "");
 | 
	
		
			
				|  |  |              if (!hideLoading) {
 | 
	
		
			
				|  |  |                setTimeout(() => {
 | 
	
		
			
				|  |  |                  wx.showToast({
 | 
	
		
			
				|  |  | -                  title: "登录超时",
 | 
	
		
			
				|  |  | +                  title: "登录过期,请重新登录",
 | 
	
		
			
				|  |  |                    icon: "none",
 | 
	
		
			
				|  |  |                  });
 | 
	
		
			
				|  |  |                }, 100);
 | 
	
	
		
			
				|  | @@ -64,7 +65,7 @@ module.exports = function (options: any) {
 | 
	
		
			
				|  |  |              // console.log(currentPage.route,'currentPage==>')
 | 
	
		
			
				|  |  |              // 为了处理发版处理;
 | 
	
		
			
				|  |  |              // https://mp.weixin.qq.com/cgi-bin/announce?action=getannouncement&key=11669729383k7cis&version=1&lang=zh_CN&platform=2
 | 
	
		
			
				|  |  | -            const route = currentPage.route === 'pages/purchaseRecord/record' ? currentPage.route : ''
 | 
	
		
			
				|  |  | +            const route = currentPage?.route === 'pages/purchaseRecord/record' ? currentPage?.route : ''
 | 
	
		
			
				|  |  |              if (currentPage.route != "pages/login/index") {
 | 
	
		
			
				|  |  |                wx.redirectTo({
 | 
	
		
			
				|  |  |                  url: "/pages/login/index?redirectUrl=" + route,
 | 
	
	
		
			
				|  | @@ -74,12 +75,12 @@ module.exports = function (options: any) {
 | 
	
		
			
				|  |  |              if (!hideLoading) {
 | 
	
		
			
				|  |  |                setTimeout(() => {
 | 
	
		
			
				|  |  |                  wx.showToast({
 | 
	
		
			
				|  |  | -                  title: res.data.msg,
 | 
	
		
			
				|  |  | +                  title: res.data.message,
 | 
	
		
			
				|  |  |                    icon: "none",
 | 
	
		
			
				|  |  |                  });
 | 
	
		
			
				|  |  |                }, 100);
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | -            reject(res.data.msg);
 | 
	
		
			
				|  |  | +            reject(res);
 | 
	
		
			
				|  |  |            }
 | 
	
		
			
				|  |  |          } else {
 | 
	
		
			
				|  |  |            resolve(res);
 |