sherlockchou86/WeChat.NET

WxService.WxInit() 获取登录用户信息出错

Closed this issue · 1 comments

出错位置
我把 query参数里缺失的Skey参数添加了,但是任然获取失败.
返回结果

{
"BaseResponse": {
"Ret": 1100,
"ErrMsg": ""
}
,
"Count": 0,
"ContactList": [],
"SyncKey": {
"Count": 0,
"List": []
}
,
"User": {
"Uin": 0,
"UserName": "",
"NickName": "",
"HeadImgUrl": "",
"RemarkName": "",
"PYInitial": "",
"PYQuanPin": "",
"RemarkPYInitial": "",
"RemarkPYQuanPin": "",
"HideInputBarFlag": 0,
"StarFriend": 0,
"Sex": 0,
"Signature": "",
"AppAccountFlag": 0,
"VerifyFlag": 0,
"ContactFlag": 0,
"WebWxPluginSwitch": 0,
"HeadImgFlag": 0,
"SnsFlag": 0
}
,
"ChatSet": "",
"SKey": "",
"ClientVersion": 0,
"SystemTime": 0,
"GrayScale": 0,
"InviteStartCount": 0,
"MPSubscribeMsgCount": 0,
"MPSubscribeMsgList": [],
"ClickReportInterval": 0
}

解决了,因为微信的接口升级,所以需要把 WXService.cs#L21WXService.cs#L33https://wx.qq.com/ 改为https://wx2.qq.com/