Open sixinyiyu opened 6 years ago
微信初始化时得到的结果是的;https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxinit?r=%d&pass_ticket=%s post方式,参数也是正确的,将此数据到postman中测试可以得到json
后来换成wx2.qq.com ,得到的ret是 1,其他字段都是空值
{ "BaseResponse": { "Ret": 1, "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 }
我也碰到了,楼主有解决吗
刚刚解决了,在java中,url这些请求,不要用单引号
微信初始化时得到的结果是的;https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxinit?r=%d&pass_ticket=%s post方式,参数也是正确的,将此数据到postman中测试可以得到json
后来换成wx2.qq.com ,得到的ret是 1,其他字段都是空值
{ "BaseResponse": { "Ret": 1, "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 }