1
0
mirror of https://github.com/Mrs4s/MiraiGo.git synced 2025-05-04 19:17:38 +08:00

feat: change to FetchQRCodeCustomSize

This commit is contained in:
LXY 2021-12-24 14:34:30 +08:00 committed by GitHub
parent b5697b24c5
commit 1b3e84baf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -309,7 +309,11 @@ func (c *QQClient) TokenLogin(token []byte) error {
return c.init(true) return c.init(true)
} }
func (c *QQClient) FetchQRCode(size, margin, ecLevel uint32) (*QRCodeLoginResponse, error) { func (c *QQClient) FetchQRCode() (*QRCodeLoginResponse, error) {
return c.FetchQRCode(3, 4, 2)
}
func (c *QQClient) FetchQRCodeCustomSize(size, margin, ecLevel uint32) (*QRCodeLoginResponse, error) {
if c.Online.Load() { if c.Online.Load() {
return nil, ErrAlreadyOnline return nil, ErrAlreadyOnline
} }