Skip to content

Commit da1149c

Browse files
committed
Fix verify failed bug
1 parent 79b756d commit da1149c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

itchat/components/messages.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def produce_msg(core, msgList):
7474
core.search_friends(userName=actualOpposite) or \
7575
templates.User(userName=actualOpposite)
7676
# by default we think there may be a user missing not a mp
77+
m['User'].core = core
7778
if m['MsgType'] == 1: # words
7879
if m['Url']:
7980
regx = r'(.+?\(.+?\))'
@@ -102,6 +103,7 @@ def produce_msg(core, msgList):
102103
'FileName' : '%s.mp3' % time.strftime('%y%m%d-%H%M%S', time.localtime()),
103104
'Text': download_fn,}
104105
elif m['MsgType'] == 37: # friends
106+
m['User']['UserName'] = m['RecommendInfo']['UserName']
105107
msg = {
106108
'Type': 'Friends',
107109
'Text': {

itchat/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os, platform
22

3-
VERSION = '1.2.31'
3+
VERSION = '1.3.0'
44
BASE_URL = 'https://login.weixin.qq.com'
55
OS = platform.system() #Windows, Linux, Darwin
66
DIR = os.getcwd()

0 commit comments

Comments
 (0)