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
@@ -611,7 +611,7 @@ async function toRecommendPage (hooks) {
return true
}
return false
}).then((res) => {
}, { timeout: 120 * 1000 }).then((res) => {
return res.json()
})
page.goto(recommendJobPageUrl, { timeout: 1 * 1000 }).catch(e => { void e })
@@ -634,7 +634,7 @@ async function toRecommendPage (hooks) {
let userInfoResponse = await userInfoPromise
await hooks.userInfoResponse?.promise(userInfoResponse)
if (userInfoResponse.code !== 0) {
if (userInfoResponse?.code !== 0) {
autoStartChatEventBus.emit('LOGIN_STATUS_INVALID', {
userInfoResponse
})
+1 -1
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;