修改uin为int64类型

This commit is contained in:
eatmoreapple 2023-01-05 18:27:04 +08:00
parent 46e6fb1afb
commit 17fbbd350e
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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)