Fix verify failed bug

This commit is contained in:
LittleCoder
2017-03-20 14:46:35 +08:00
parent 79b756d347
commit da1149c1ee
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -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
View File
@@ -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()