mirror of
https://github.com/Mrs4s/MiraiGo.git
synced 2025-05-04 11:07:40 +08:00
feat: change to FetchQRCodeCustomSize
This commit is contained in:
parent
b5697b24c5
commit
1b3e84baf0
@ -309,7 +309,11 @@ func (c *QQClient) TokenLogin(token []byte) error {
|
||||
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() {
|
||||
return nil, ErrAlreadyOnline
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user