mirror of
https://github.com/littlecodersh/ItChat.git
synced 2026-10-17 05:30:31 +08:00
Fix verify failed bug
This commit is contained in:
@@ -74,6 +74,7 @@ def produce_msg(core, msgList):
|
||||
core.search_friends(userName=actualOpposite) or \
|
||||
templates.User(userName=actualOpposite)
|
||||
# by default we think there may be a user missing not a mp
|
||||
m['User'].core = core
|
||||
if m['MsgType'] == 1: # words
|
||||
if m['Url']:
|
||||
regx = r'(.+?\(.+?\))'
|
||||
@@ -102,6 +103,7 @@ def produce_msg(core, msgList):
|
||||
'FileName' : '%s.mp3' % time.strftime('%y%m%d-%H%M%S', time.localtime()),
|
||||
'Text': download_fn,}
|
||||
elif m['MsgType'] == 37: # friends
|
||||
m['User']['UserName'] = m['RecommendInfo']['UserName']
|
||||
msg = {
|
||||
'Type': 'Friends',
|
||||
'Text': {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
import os, platform
|
||||
|
||||
VERSION = '1.2.31'
|
||||
VERSION = '1.3.0'
|
||||
BASE_URL = 'https://login.weixin.qq.com'
|
||||
OS = platform.system() #Windows, Linux, Darwin
|
||||
DIR = os.getcwd()
|
||||
|
||||
Reference in New Issue
Block a user