From 2a93afc95dda6afd1479af042e178b3e84a0c8c4 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期四, 13 六月 2024 14:03:36 +0800
Subject: [PATCH] feat(支付): 修改接口统一前缀
---
common/http.interceptor.js | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/common/http.interceptor.js b/common/http.interceptor.js
index f12595f..77fa8f2 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -43,9 +43,7 @@
// 寮曠敤token
const TOKEN = uni.getStorageSync(ACCESSTOKEN);
if (TOKEN) {
- x.header[ACCESSTOKEN] = TOKEN;
- } else {
- delete x.header[ACCESSTOKEN]
+ x.header[ACCESSTOKEN] = 'Bearer ' + TOKEN;
}
x.header['CLIENT-TYPE'] = appType()
return x;
@@ -78,4 +76,4 @@
vm.$u.toast("璇锋眰寮傚父锛�"); //閿欒鎻愮ず淇℃伅
return Promise.reject(response)
})
-}
+}
\ No newline at end of file
--
Gitblit v1.9.1