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:
parent
9c9a469a16
commit
d28e6f6e82
6
login.go
6
login.go
@ -65,7 +65,11 @@ func qrcodeLogin() error {
|
|||||||
}
|
}
|
||||||
_ = ioutil.WriteFile("qrcode.png", rsp.ImageData, 0o644)
|
_ = ioutil.WriteFile("qrcode.png", rsp.ImageData, 0o644)
|
||||||
defer func() { _ = os.Remove("qrcode.png") }()
|
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)
|
time.Sleep(time.Second)
|
||||||
qrcodeTerminal.New().Get(fi.Content).Print()
|
qrcodeTerminal.New().Get(fi.Content).Print()
|
||||||
s, err := cli.QueryQRCodeStatus(rsp.Sig)
|
s, err := cli.QueryQRCodeStatus(rsp.Sig)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user