From c056f6f5442d3b0ec29b20f24deb1ad914d2d8f1 Mon Sep 17 00:00:00 2001
From: 石广澎 <shiguangpeng@163.com>
Date: 星期五, 30 八月 2024 21:15:27 +0800
Subject: [PATCH] feat(支付): 去除无用代码、依赖
---
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 9bef48b..364454d 100644
--- a/common/http.interceptor.js
+++ b/common/http.interceptor.js
@@ -33,8 +33,8 @@
}
const plat = getPlat()
if (plat == 2) { //寰俊
- const OPENID = uni.getStorageSync('OPENID' + plat) || null
- const UNIONID = uni.getStorageSync('UNIONID' + plat) || null
+ const OPENID = uni.getStorageSync('OPENID') || null
+ const UNIONID = uni.getStorageSync('UNIONID') || null
if (OPENID) {
x.header['Openid'] = OPENID;
}
@@ -43,13 +43,13 @@
}
}
if (plat == 5) { //鏀粯瀹�
- const ALIUSERID = uni.getStorageSync('ALIUSERID' + plat) || null
+ const ALIUSERID = uni.getStorageSync('ALIUSERID') || null
if (ALIUSERID) {
x.header['Aliuserid'] = ALIUSERID;
}
}
if (plat == 15) { //浜戦棯浠�
- const UNIONPAYID = uni.getStorageSync('UNIONPAYID ' + plat) || null
+ const UNIONPAYID = uni.getStorageSync('UNIONPAYID') || null
if (UNIONPAYID) {
x.header['Unionpayid '] = UNIONPAYID;
}
--
Gitblit v1.9.1