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

ref: improve protocol display name

This commit is contained in:
Mrs4s 2023-03-13 01:01:43 +08:00
parent 6a291840d7
commit 3f4630b6d1
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -216,7 +216,7 @@ func LoginInteract() {
time.Sleep(time.Second * 5) time.Sleep(time.Second * 5)
} }
log.Info("开始尝试登录并同步消息...") log.Info("开始尝试登录并同步消息...")
log.Infof("使用协议: %s", device.Protocol) log.Infof("使用协议: %s", device.Protocol.Version())
cli = newClient() cli = newClient()
cli.UseDevice(device) cli.UseDevice(device)
isQRCodeLogin := (base.Account.Uin == 0 || len(base.Account.Password) == 0) && !base.Account.Encrypt isQRCodeLogin := (base.Account.Uin == 0 || len(base.Account.Password) == 0) && !base.Account.Encrypt