File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff 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' : {
Original file line number Diff line number Diff line change 11import os , platform
22
3- VERSION = '1.2.31 '
3+ VERSION = '1.3.0 '
44BASE_URL = 'https://login.weixin.qq.com'
55OS = platform .system () #Windows, Linux, Darwin
66DIR = os .getcwd ()
You can’t perform that action at this time.
0 commit comments