Commit 49029114 authored by 张彦钊's avatar 张彦钊

change test file

parent 81b030f2
...@@ -20,7 +20,8 @@ import datetime ...@@ -20,7 +20,8 @@ import datetime
def Json(x): def Json(x):
data = json.loads(x[1]) data = json.loads(x[1])
if 'type' in data and 'device' in data and 'params' in data and 'card_content_type' in data['params']: if 'type' in data and 'device' in data and 'params' in data and 'card_content_type' in data['params']:
if data['type'] == 'on_click_card'and data['params']['card_content_type'] =='diary': if data['type'] == 'on_click_card'and data['params']['card_content_type'] =='diary' \
and data["device"]["device_id"] == "E417C286-40A4-42F6-BDA9-AEEBD8FEC3B6":
return True return True
# elif data['type'] == 'on_click_button'and 'params' in data: # elif data['type'] == 'on_click_button'and 'params' in data:
# if 'page_name' in data['params'] and 'button_name' in data['params'] and 'extra_params' in data['params']: # if 'page_name' in data['params'] and 'button_name' in data['params'] and 'extra_params' in data['params']:
......
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