From 87f34aa6e95d08d1b061bfa201813af34b677a1b Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期二, 23 七月 2024 14:07:42 +0800
Subject: [PATCH] feat(支付): 去除无用api

---
 common/http.interceptor.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/common/http.interceptor.js b/common/http.interceptor.js
index 77fa8f2..16bdfd5 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -56,24 +56,24 @@
 		let res = x.data
 		if (res.code == 10000) {
 			return res.data;
-		} else if (res.code == 20002) {
+		} else if (res.code == 401) {
 			const cid = uni.getStorageSync('CID')
 			uni.removeStorageSync(ACCESSTOKEN)
 			vm.$u.toast("鎺堟潈杩囨湡,璇烽噸鏂扮櫥褰�");
 			setTimeout(() => {
 				uni.reLaunch({
-					url: "/pages/pay/scanpay?cid=" + cid
+					url: "/pay/login?cid=" + cid
 				})
 			}, 800);
 			return Promise.reject(res)
 		} else if (res.code == 10002) {
 			return Promise.reject(res)
 		} else {
-			vm.$u.toast(res.description || "璇锋眰寮傚父锛�"); //閿欒鎻愮ず淇℃伅
+			// vm.$u.toast(res.description || res.msg ||res.info ||"璇锋眰寮傚父锛�"); //閿欒鎻愮ず淇℃伅
 			return Promise.reject(res)
 		}
 	}, (response) => {
 		vm.$u.toast("璇锋眰寮傚父锛�"); //閿欒鎻愮ず淇℃伅
 		return Promise.reject(response)
 	})
-}
\ No newline at end of file
+}

--
Gitblit v1.9.1