Merge pull request #83 from Zangwill/patch-3

修复wxuin的int类型导致编译的32位程序出错
This commit is contained in:
聂青 2021-09-16 09:55:15 +08:00 committed by GitHub
commit bd05b1f36d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -204,7 +204,7 @@ func (c *Client) SyncCheck(request *BaseRequest, info *LoginInfo, response *WebI
params.Add("r", strconv.FormatInt(time.Now().Unix(), 10)) params.Add("r", strconv.FormatInt(time.Now().Unix(), 10))
params.Add("skey", info.SKey) params.Add("skey", info.SKey)
params.Add("sid", info.WxSid) params.Add("sid", info.WxSid)
params.Add("uin", strconv.Itoa(info.WxUin)) params.Add("uin", strconv.FormatInt(info.WxUin, 10))
params.Add("deviceid", request.DeviceID) params.Add("deviceid", request.DeviceID)
params.Add("_", strconv.FormatInt(time.Now().Unix(), 10)) params.Add("_", strconv.FormatInt(time.Now().Unix(), 10))
var syncKeyStringSlice = make([]string, response.SyncKey.Count) var syncKeyStringSlice = make([]string, response.SyncKey.Count)