mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
fix: remove qrcode.png.
This commit is contained in:
parent
e8d2d345e9
commit
b8f004d278
1
login.go
1
login.go
@ -48,6 +48,7 @@ func qrcodeLogin() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
_ = ioutil.WriteFile("qrcode.png", rsp.ImageData, 0644)
|
_ = ioutil.WriteFile("qrcode.png", rsp.ImageData, 0644)
|
||||||
|
defer func() { _ = os.Remove("qrcode.png") }()
|
||||||
log.Infof("请使用手机QQ扫描二维码 (qrcode.png) : ")
|
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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user