From 72bd2832fed5cd132799791fa90959444df35d9c Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Fri, 5 Sep 2025 11:09:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=94=A8=E6=88=B7):=20=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=BA=AB=E4=BB=BD=E6=8E=A5=E5=8F=A3=E8=B7=AF=E5=BE=84=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/wallet.js | 4 ++-- src/utils/routeGuard.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/wallet.js b/src/api/wallet.js index 0860187..e4ae076 100644 --- a/src/api/wallet.js +++ b/src/api/wallet.js @@ -58,8 +58,8 @@ export function userBankSearchUserProfile(type, account) { * @param {string} userId - 用户ID * @returns {Promise} 返回用户身份权限信息 */ -export function getUserIdentity(userId) { - return get(`/app/h5/${userId}/identity`) +export function getUserIdentity() { + return get(`/app/h5/identity`) } /** diff --git a/src/utils/routeGuard.js b/src/utils/routeGuard.js index b5235f7..9072928 100644 --- a/src/utils/routeGuard.js +++ b/src/utils/routeGuard.js @@ -187,7 +187,7 @@ class IdentityChecker { try { console.debug('🔍 Checking user identity for:', userId) - const response = await getUserIdentity(userId) + const response = await getUserIdentity() if (response && response.status && response.body) { const identity = response.body