change timeout of get user info

This commit is contained in:
geekgeekrun
2026-01-27 16:55:32 +08:00
parent 9889182082
commit c663b1be1c
2 changed files with 3 additions and 3 deletions

View File

@@ -100,7 +100,7 @@ export default class SqlitePlugin {
hooks.userInfoResponse.tapPromise(
"SqlitePlugin",
async (userInfoResponse) => {
if (userInfoResponse.code !== 0) {
if (!userInfoResponse || userInfoResponse.code !== 0) {
return;
}
const { zpData: userInfo } = userInfoResponse;