1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-07-13 00:43:48 +00:00

feat: small qrcode print

This commit is contained in:
wdvxdr
2021-10-16 13:59:11 +08:00
parent 029d3a2c18
commit 6317e6c853

View File

@ -70,7 +70,7 @@ func qrcodeLogin() error {
log.Infof("请使用手机QQ扫描二维码 (qrcode.png) : ")
}
time.Sleep(time.Second)
qrcodeTerminal.New().Get(fi.Content).Print()
qrcodeTerminal.New2(qrcodeTerminal.ConsoleColors.BrightBlack, qrcodeTerminal.ConsoleColors.BrightWhite, qrcodeTerminal.QRCodeRecoveryLevels.Low).Get(fi.Content).Print()
s, err := cli.QueryQRCodeStatus(rsp.Sig)
if err != nil {
return err