mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
replace error msg.
This commit is contained in:
parent
7b1f0d72eb
commit
491bd2276e
@ -183,7 +183,11 @@ func (s *webServer) Dologin() {
|
|||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
return
|
return
|
||||||
case client.OtherLoginError, client.UnknownLoginError:
|
case client.OtherLoginError, client.UnknownLoginError:
|
||||||
log.Warnf("登录失败: %v", rsp.ErrorMessage)
|
msg := rsp.ErrorMessage
|
||||||
|
if strings.Contains(msg, "版本") {
|
||||||
|
msg = "密码错误或账号被冻结"
|
||||||
|
}
|
||||||
|
log.Warnf("登录失败: %v", msg)
|
||||||
log.Infof("按 Enter 继续....")
|
log.Infof("按 Enter 继续....")
|
||||||
readLine()
|
readLine()
|
||||||
os.Exit(0)
|
os.Exit(0)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user