fix: #21 修改跳转分数页面超时时间为10s
This commit is contained in:
parent
79591ea694
commit
bb0b34d99a
|
@ -58,12 +58,11 @@ func (c *Core) RespondDaily(cookies []Cookie, model string) {
|
||||||
|
|
||||||
_, err = page.Goto(MyPointsUri, playwright.PageGotoOptions{
|
_, err = page.Goto(MyPointsUri, playwright.PageGotoOptions{
|
||||||
Referer: playwright.String(MyPointsUri),
|
Referer: playwright.String(MyPointsUri),
|
||||||
Timeout: playwright.Float(1000),
|
Timeout: playwright.Float(10000),
|
||||||
WaitUntil: playwright.WaitUntilStateDomcontentloaded,
|
WaitUntil: playwright.WaitUntilStateDomcontentloaded,
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorln("跳转页面失败")
|
log.Errorln("跳转页面失败")
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
switch model {
|
switch model {
|
||||||
|
|
Loading…
Reference in New Issue