From 9c392e2be4d54b687cb1516750d89981584a4529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=9C=9D=E8=BE=89?= <1518649445@qq.com> Date: Sat, 29 Jul 2017 12:17:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dinit=E5=A4=B1=E8=B4=A5,?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=BE=AE=E4=BF=A1=E6=8E=A5=E5=8F=A3=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E4=B8=BAhttps://wx2.qq.com?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 因为微信网页版登录接口 https://login.weixin.qq.com/cgi-bin/mmwebwx-bin/login 返回的redirect_url 域名为 https://wx2.qq.com,所以之前请求的cookie将失效,这里将所有微信接口地址改为https://wx2.qq.com --- WeChat.NET/HTTP/WXService.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/WeChat.NET/HTTP/WXService.cs b/WeChat.NET/HTTP/WXService.cs index a435736..8400c8a 100644 --- a/WeChat.NET/HTTP/WXService.cs +++ b/WeChat.NET/HTTP/WXService.cs @@ -18,19 +18,19 @@ class WXService private static Dictionary _syncKey = new Dictionary(); //微信初始化url - private static string _init_url = "https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxinit?r=1377482058764"; + private static string _init_url = "https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxinit?r=1377482058764"; //获取好友头像 - private static string _geticon_url = "https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxgeticon?username="; + private static string _geticon_url = "https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgeticon?username="; //获取群聊(组)头像 - private static string _getheadimg_url = "https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxgetheadimg?username="; + private static string _getheadimg_url = "https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetheadimg?username="; //获取好友列表 - private static string _getcontact_url = "https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxgetcontact"; + private static string _getcontact_url = "https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxgetcontact"; //同步检查url private static string _synccheck_url = "https://webpush.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?sid={0}&uin={1}&synckey={2}&r={3}&skey={4}&deviceid={5}"; //同步url - private static string _sync_url = "https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid="; + private static string _sync_url = "https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsync?sid="; //发送消息url - private static string _sendmsg_url = "https://wx.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsg?sid="; + private static string _sendmsg_url = "https://wx2.qq.com/cgi-bin/mmwebwx-bin/webwxsendmsg?sid="; /// /// 微信初始化