|
@@ -700,8 +700,8 @@ class WXBot:
|
|
|
if not os.path.exists(fpath):
|
|
|
print '[ERROR] File not exists.'
|
|
|
return None
|
|
|
- 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'
|
|
|
+ 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'
|
|
|
flen = str(os.path.getsize(fpath))
|
|
|
ftype = mimetypes.guess_type(fpath)[0] or 'application/octet-stream'
|
|
|
files = {
|