From 3a5eae8646f21c6de7e3dcf981bba8af09d0be59 Mon Sep 17 00:00:00 2001 From: weiwei Date: Thu, 17 Apr 2025 11:04:42 +0800 Subject: [PATCH] 1 --- src/sheep/utils/request.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/sheep/utils/request.ts b/src/sheep/utils/request.ts index 0b8c890..191d41b 100644 --- a/src/sheep/utils/request.ts +++ b/src/sheep/utils/request.ts @@ -79,8 +79,7 @@ async function handleShLogin(): Promise { try { uni.showLoading({ title: "登录中...", mask: true }) const userInfo = await (window as any).CP2.getUserInfo() - - if (userInfo.code == 0 || !userInfo.accountId || !userInfo.sessionId) { + if (userInfo.code == 0 || !userInfo.data.accountId || !userInfo.data.sessionId) { uni.showToast({ title: "获取诗画用户信息失败", icon: "none" }) return false }