1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

fix: login message error

This commit is contained in:
Mrs4s 2023-03-05 19:49:43 +08:00
parent 278d6260c8
commit a704009484
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -222,9 +222,7 @@ func loginResponseProcessor(res *client.LoginResponse) error {
os.Exit(0)
case client.OtherLoginError, client.UnknownLoginError, client.TooManySMSRequestError:
msg := res.ErrorMessage
if strings.Contains(msg, "版本") {
msg = "密码错误或账号被冻结"
} else if strings.Contains(msg, "冻结") {
if strings.Contains(msg, "冻结") {
log.Fatalf("账号被冻结")
}
log.Warnf("登录失败: %v", msg)