From 17fbbd350e1a0163d299884310736bec6bff018d Mon Sep 17 00:00:00 2001 From: eatmoreapple Date: Thu, 5 Jan 2023 18:27:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9uin=E4=B8=BAint64=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- caller.go | 2 +- client.go | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/caller.go b/caller.go index 68b5f7a..db16029 100644 --- a/caller.go +++ b/caller.go @@ -413,7 +413,7 @@ func (c *Caller) WebWxRelationPin(request *BaseRequest, user *User, op uint8) er } // WebWxPushLogin 免扫码登陆接口 -func (c *Caller) WebWxPushLogin(uin int) (*PushLoginResponse, error) { +func (c *Caller) WebWxPushLogin(uin int64) (*PushLoginResponse, error) { resp, err := c.Client.WebWxPushLogin(uin) if err != nil { return nil, err diff --git a/client.go b/client.go index 702f765..26c1bcb 100644 --- a/client.go +++ b/client.go @@ -698,9 +698,10 @@ func (c *Client) WebWxRelationPin(request *BaseRequest, op uint8, user *User) (* } // WebWxPushLogin 免扫码登陆接口 -func (c *Client) WebWxPushLogin(uin int) (*http.Response, error) { +func (c *Client) WebWxPushLogin(uin int64) (*http.Response, error) { path, _ := url.Parse(c.Domain.BaseHost() + webwxpushloginurl) - params := url.Values{"uin": {strconv.Itoa(uin)}} + params := url.Values{} + params.Add("uin", strconv.FormatInt(uin, 10)) path.RawQuery = params.Encode() req, _ := http.NewRequest(http.MethodGet, path.String(), nil) return c.Do(req)