mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-09-08 08:57:24 +08:00
Merge remote-tracking branch 'origin/feature/ui' into feature/multi-process
This commit is contained in:
@@ -39,6 +39,9 @@ function combine(arr, min, max) {
|
||||
// 生成符合"0"限制的组合
|
||||
function combineWithZero(arr, min, max) {
|
||||
let combineResult;
|
||||
if (!Array.isArray(arr)) {
|
||||
arr = []
|
||||
}
|
||||
if (arr.includes(0)) {
|
||||
// 如果包含 0,0不参与组合
|
||||
combineResult = [].concat(
|
||||
|
||||
@@ -612,7 +612,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 })
|
||||
@@ -635,7 +635,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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user