mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-07-05 22:03:26 +00:00
feat: change to FetchQRCodeCustomSize
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user