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

change test file

parent 85e0a47b
...@@ -21,7 +21,7 @@ def Json(x): ...@@ -21,7 +21,7 @@ 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["device"]["device_id"] == "E417C286-40A4-42F6-BDA9-AEEBD8FEC3B6" \ if data['type'] == 'on_click_card' and data["device"]["device_id"] == "E417C286-40A4-42F6-BDA9-AEEBD8FEC3B6" \
and data['params']['card_content_type'] == "answer": and data['params']['card_content_type'] in ("answer","question","qa"):
return True return True
else: else:
return False return False
......
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