修改uin为int64类型
This commit is contained in:
parent
46e6fb1afb
commit
17fbbd350e
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user