1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-05 03:23:49 +08:00

fix typo.

This commit is contained in:
Mrs4s 2021-07-18 18:28:46 +08:00
parent 9c9a469a16
commit d28e6f6e82
No known key found for this signature in database
GPG Key ID: 3186E98FA19CE3A7

View File

@ -65,7 +65,11 @@ func qrcodeLogin() error {
}
_ = ioutil.WriteFile("qrcode.png", rsp.ImageData, 0o644)
defer func() { _ = os.Remove("qrcode.png") }()
log.Infof("请使用手机QQ扫描二维码 (qrcode.png) : ")
if cli.Uin != 0 {
log.Infof("请使用账号 %v 登录手机QQ扫描二维码 (qrcode.png) : ", cli.Uin)
} else {
log.Infof("请使用手机QQ扫描二维码 (qrcode.png) : ")
}
time.Sleep(time.Second)
qrcodeTerminal.New().Get(fi.Content).Print()
s, err := cli.QueryQRCodeStatus(rsp.Sig)