1
0
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:
Mrs4s 2021-04-07 18:49:53 +08:00
parent e8d2d345e9
commit b8f004d278

View File

@ -48,6 +48,7 @@ func qrcodeLogin() error {
return err
}
_ = ioutil.WriteFile("qrcode.png", rsp.ImageData, 0644)
defer func() { _ = os.Remove("qrcode.png") }()
log.Infof("请使用手机QQ扫描二维码 (qrcode.png) : ")
time.Sleep(time.Second)
qrcodeTerminal.New().Get(fi.Content).Print()