修复runtime error

This commit is contained in:
Promix953 2022-08-11 08:12:16 +08:00
parent 66b35f3585
commit f5e72cfcf2
1 changed files with 10 additions and 9 deletions

View File

@ -206,7 +206,7 @@ func (c *Core) RespondDaily(user *model.User, model string) {
log.Infoln("获取提交按钮失败,本次答题结束" + err.Error())
return
}
if btn != nil {
enabled, err := btn.IsEnabled()
if err != nil {
log.Errorln(err.Error())
@ -218,6 +218,7 @@ func (c *Core) RespondDaily(user *model.User, model string) {
log.Errorln("提交答案失败")
}
}
}
// 该元素存在则说明出现了滑块
handle, _ := page.QuerySelector("#nc_mask > div")
if handle != nil {