Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
49029114
Commit
49029114
authored
Aug 16, 2019
by
张彦钊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change test file
parent
81b030f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
monitor.py
monitor.py
+2
-1
No files found.
monitor.py
View file @
49029114
...
@@ -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']:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment