This commit is contained in:
vn.py 2017-12-06 09:14:53 +08:00
parent f67cb40864
commit 03381c216c

View File

@ -211,7 +211,11 @@ class TqApi(object):
def on_receive_msg(self, msg):
"""收到数据推送"""
pack = json.loads(msg)
l = pack["data"]
if 'data' in pack:
l = pack["data"]
else:
print u'on_receive_msg收到的数据中没有data字段数据内容%s' %str(pack)
for data in l:
# 合并更新数据字典