This commit is contained in:
weiwei committed 2025-04-17 11:04:42 +08:00
1 parent 23755d615b
commit 3a5eae8646
1 file changed
+1 -2
+1 -2
View File
@@ -79,8 +79,7 @@ async function handleShLogin(): Promise<boolean> {
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
}