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
763bf9f6
Commit
763bf9f6
authored
Mar 11, 2019
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加机器人提醒任务
parent
b1ae44f0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
dingding_robot.py
eda/recommended_indexs/dingding_robot.py
+16
-1
No files found.
eda/recommended_indexs/dingding_robot.py
View file @
763bf9f6
...
...
@@ -12,14 +12,29 @@ def dingding_robot(data):
if
__name__
==
"__main__"
:
import
linecache
str
=
""
for
i
in
range
(
36
,
64
):
s
=
linecache
.
getline
(
'test.txt'
,
i
)
.
strip
(
"
\n
"
)
.
split
(
","
)
if
s
[
0
]
!=
""
:
str
+=
s
[
0
]
+
"
\n
"
str
+=
"【很重要】如下有变更,请提醒相关的人:1.推荐模型变更优化,影响CTR或者CVR(王志伟);2.任何涉及到数据库schame变更(王志伟)"
print
(
str
)
# 请求参数 可以写入配置文件中
data
=
{
"msgtype"
:
"text"
,
"text"
:
{
"content"
:
"群机器人是钉钉群的高级扩展功能。群机器人可以将第三方服务的信息聚合到群聊中,实现自动化的信息同步。"
,
"content"
:
str
,
"title"
:
"自定义机器人"
# "picUrl": "",
# "messageUrl": "https://www.baidu.com/"
},
"at"
:
{
"atMobiles"
:[
"17310453926"
]
}
}
res
=
dingding_robot
(
data
)
...
...
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