fix: #21 修改跳转分数页面超时时间为10s

This commit is contained in:
johlanse 2022-02-21 21:55:41 +08:00
parent 79591ea694
commit bb0b34d99a
1 changed files with 1 additions and 2 deletions

View File

@ -58,12 +58,11 @@ func (c *Core) RespondDaily(cookies []Cookie, model string) {
_, err = page.Goto(MyPointsUri, playwright.PageGotoOptions{
Referer: playwright.String(MyPointsUri),
Timeout: playwright.Float(1000),
Timeout: playwright.Float(10000),
WaitUntil: playwright.WaitUntilStateDomcontentloaded,
})
if err != nil {
log.Errorln("跳转页面失败")
return
}
switch model {