修改热登录错误处理 🚑 (#166)
This commit is contained in:
parent
df01bfefe5
commit
8c9d36ec16
5
bot.go
5
bot.go
@ -85,9 +85,12 @@ func (b *Bot) HotLogin(storage HotReloadStorage, retries ...bool) error {
|
|||||||
if !ok {
|
if !ok {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if retErr == cookieInvalid {
|
// TODO add more error code handle here
|
||||||
|
switch retErr {
|
||||||
|
case cookieInvalid:
|
||||||
return b.Login()
|
return b.Login()
|
||||||
}
|
}
|
||||||
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user