From e12663052fa4c7bb96a34b24a0f14df591405175 Mon Sep 17 00:00:00 2001 From: kk <875203880@qq.com> Date: Sat, 11 Jul 2026 20:21:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E7=94=A8=E6=88=B7=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0open=5Fid=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/index/index.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 73d09fd..733e537 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -415,7 +415,8 @@ export default { // 检查用户信息,若缓存中没有则调接口获取 if (!this.userId) { try { - const infoRes = await gatewayGet('/api/v1/user/info', {}); + const openId = uni.getStorageSync('openid') || ''; + const infoRes = await gatewayGet('/api/v1/user/info', { open_id: openId }); const infoData = (infoRes.data || {}).data || {}; if (infoData.user_id) { const existing = getCachedUserInfo() || {};