Commit cc1e7090 authored by 高雅喆's avatar 高雅喆

update

parent 22262c28
......@@ -337,7 +337,7 @@ class CollectData(object):
tag_ids = raw_val_dict["params"]["tag_ids"]
else:
# todo 客户端埋点bug,后期移除
tag_ids = raw_val_dict["params"]["tag_ids:"]
tag_ids = raw_val_dict["params"].get("tag_ids:", [])
if isinstance(tag_ids, str):
tagid_list = json.loads(tag_ids)
elif isinstance(tag_ids, list):
......@@ -366,7 +366,7 @@ class CollectData(object):
data = json.loads(raw_val_dict[b'content'])
if 'SYS' in data and 'APP' in data and 'action' in data['SYS'] and data['SYS']['action'] == "venus/community/skin_check/submit_questions":
device_id = data['SYS']['cl_id']
tagid_list = list(data['APP'].get('answer_tag', {}))
tagid_list = list(data['APP'].get('answer_tag', []))
user_id = data['SYS'].get('user_id', None)
logging.info("skin_check topic type:%s, device_id:%s, answer_tag:%s" %
(str(data['SYS']['action']), str(device_id), str(tagid_list)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment