|
@@ -796,8 +796,8 @@ class WXBot:
|
|
|
if not os.path.exists(fpath):
|
|
|
print '[ERROR] File not exists.'
|
|
|
return None
|
|
|
- url_1 = 'https://file.wx.qq.com/cgi-bin/mmwebwx-bin/webwxuploadmedia?f=json'
|
|
|
- url_2 = 'https://file2.wx.qq.com/cgi-bin/mmwebwx-bin/webwxuploadmedia?f=json'
|
|
|
+ url_1 = 'https://file.wx2.qq.com/cgi-bin/mmwebwx-bin/webwxuploadmedia?f=json'
|
|
|
+ url_2 = 'https://file2.wx2.qq.com/cgi-bin/mmwebwx-bin/webwxuploadmedia?f=json'
|
|
|
flen = str(os.path.getsize(fpath))
|
|
|
ftype = mimetypes.guess_type(fpath)[0] or 'application/octet-stream'
|
|
|
files = {
|
|
@@ -1133,7 +1133,7 @@ class WXBot:
|
|
|
'synckey': self.sync_key_str,
|
|
|
'_': int(time.time()),
|
|
|
}
|
|
|
- url = 'https://' + self.sync_host + '.weixin.qq.com/cgi-bin/mmwebwx-bin/synccheck?' + urllib.urlencode(params)
|
|
|
+ url = 'https://' + self.sync_host + '.wx.qq.com/cgi-bin/mmwebwx-bin/synccheck?' + urllib.urlencode(params)
|
|
|
try:
|
|
|
r = self.session.get(url, timeout=60)
|
|
|
r.encoding = 'utf-8'
|