Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
钉
钉钉群通知
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
yaozheng
钉钉群通知
Commits
c025756a
Commit
c025756a
authored
Jul 05, 2021
by
TesterYao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加流量线测试群提醒
parent
13cea0d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
18 deletions
+72
-18
task.py
robot/task.py
+72
-18
No files found.
robot/task.py
View file @
c025756a
...
...
@@ -70,40 +70,94 @@ class Task:
@
classmethod
def
zhiban
(
cls
):
zhibanren
=
[[
'林昊'
,
'17866673125'
],
ll_
zhibanren
=
[[
'林昊'
,
'17866673125'
],
[
'黄博涛'
,
'13641464105'
],
[
'达敏'
,
'18658862085'
],
[
'吴翠萍'
,
'15201297871'
],
[
'吉月琳'
,
'15372438813'
],
[
'刘尖学'
,
'18367117637'
],
[
'蒋佳杰'
,
'15957195421'
]]
token
=
'11a2ead9ca600cd09e5c69c35d9bcc9486cf0a777ef5fd3c3b81b483f7bb5476'
secret
=
'SECc2b9a64a1af6cd3777eb1d4d8ce039f5c2be2cc49181e431421bbe5e701dd5c1'
ll_token
=
'11a2ead9ca600cd09e5c69c35d9bcc9486cf0a777ef5fd3c3b81b483f7bb5476'
ll_secret
=
'SECc2b9a64a1af6cd3777eb1d4d8ce039f5c2be2cc49181e431421bbe5e701dd5c1'
gg_zhibanren
=
[[
'李健'
,
'15961709154'
],
[
'徐鑫鑫'
,
'18768147457'
],
[
'张迪'
,
'18668170326'
],
[
'陈凯林'
,
'18363750961'
],
[
'张柏强'
,
'15757821458'
],
[
'樊佳'
,
'13007295320'
],
[
'余宁宁'
,
'15356195820'
]]
gg_token
=
'18a408be88a6c0ed4f56e7edf8c40fa9d30c0b40d3695674ba326f7ccfc79310'
gg_secret
=
'SEC3d0e79f76b5207c3f945762dc79e34a645ec80c391fb25942f96afc1a60a5475'
cx_zhibanren
=
[[
'何亚辉'
,
'15536261700'
],
[
'张国政'
,
'18538976289'
],
[
'赵肖炜'
,
'18768105694'
],
[
'毛宝'
,
'17681879658'
],
[
'余伟华'
,
'15756006525'
],
[
'金周萍'
,
'13666745601'
],
[
'陶燕红'
,
'15061800715'
]]
cx_token
=
'786c9b2957e6fdf44d91df3bc02f86ff5196ac39f31726d2b7055189b7355ed7'
cx_secret
=
'SECcc1be901d1ed9099e35711da3df17f090b780a44318abae72dac68c860a5548e'
# 获取当天日期
currentdate
=
datetime
.
date
.
today
()
currentday
=
calendar
.
weekday
(
currentdate
.
year
,
currentdate
.
month
,
currentdate
.
day
)
text
=
'今日技术值班人:'
+
zhibanren
[
currentday
][
0
]
+
',请关注问题反馈群,及时跟进群任务'
at
=
{
'atMobiles'
:
[
zhibanren
[
currentday
][
1
]]}
Remind
.
send_messages
(
token
,
secret
,
text
,
at
)
ll_text
=
'今日技术值班人:'
+
ll_zhibanren
[
currentday
][
0
]
+
',请关注问题反馈群,及时跟进群任务'
ll_at
=
{
'atMobiles'
:
[
ll_zhibanren
[
currentday
][
1
]]}
Remind
.
send_messages
(
ll_token
,
ll_secret
,
ll_text
,
ll_at
)
gg_text
=
'今日技术值班人:'
+
gg_zhibanren
[
currentday
][
0
]
+
',请关注问题反馈群,及时跟进群任务'
gg_at
=
{
'atMobiles'
:
[
gg_zhibanren
[
currentday
][
1
]]}
Remind
.
send_messages
(
gg_token
,
gg_secret
,
gg_text
,
gg_at
)
cx_text
=
'今日技术值班人:'
+
cx_zhibanren
[
currentday
][
0
]
+
',请关注问题反馈群,及时跟进群任务'
cx_at
=
{
'atMobiles'
:
[
cx_zhibanren
[
currentday
][
1
]]}
Remind
.
send_messages
(
cx_token
,
cx_secret
,
cx_text
,
cx_at
)
@
classmethod
def
zhiban1
(
cls
):
zhibanren
=
[[
'林昊'
,
'17866673125'
],
ll_
zhibanren
=
[[
'林昊'
,
'17866673125'
],
[
'黄博涛'
,
'13641464105'
],
[
'达敏'
,
'18658862085'
],
[
'吴翠萍'
,
'15201297871'
],
[
'吉月琳'
,
'15372438813'
],
[
'刘尖学'
,
'18367117637'
],
[
'蒋佳杰'
,
'15957195421'
]]
token
=
'11a2ead9ca600cd09e5c69c35d9bcc9486cf0a777ef5fd3c3b81b483f7bb5476'
secret
=
'SECc2b9a64a1af6cd3777eb1d4d8ce039f5c2be2cc49181e431421bbe5e701dd5c1'
ll_token
=
'11a2ead9ca600cd09e5c69c35d9bcc9486cf0a777ef5fd3c3b81b483f7bb5476'
ll_secret
=
'SECc2b9a64a1af6cd3777eb1d4d8ce039f5c2be2cc49181e431421bbe5e701dd5c1'
gg_zhibanren
=
[[
'李健'
,
'15961709154'
],
[
'徐鑫鑫'
,
'18768147457'
],
[
'张迪'
,
'18668170326'
],
[
'陈凯林'
,
'18363750961'
],
[
'张柏强'
,
'15757821458'
],
[
'樊佳'
,
'13007295320'
],
[
'余宁宁'
,
'15356195820'
]]
gg_token
=
'18a408be88a6c0ed4f56e7edf8c40fa9d30c0b40d3695674ba326f7ccfc79310'
gg_secret
=
'SEC3d0e79f76b5207c3f945762dc79e34a645ec80c391fb25942f96afc1a60a5475'
cx_zhibanren
=
[[
'何亚辉'
,
'15536261700'
],
[
'张国政'
,
'18538976289'
],
[
'赵肖炜'
,
'18768105694'
],
[
'毛宝'
,
'17681879658'
],
[
'余伟华'
,
'15756006525'
],
[
'金周萍'
,
'13666745601'
],
[
'陶燕红'
,
'15061800715'
]]
cx_token
=
'786c9b2957e6fdf44d91df3bc02f86ff5196ac39f31726d2b7055189b7355ed7'
cx_secret
=
'SECcc1be901d1ed9099e35711da3df17f090b780a44318abae72dac68c860a5548e'
# 获取当天日期
currentdate
=
datetime
.
date
.
today
()
currentday
=
calendar
.
weekday
(
currentdate
.
year
,
currentdate
.
month
,
currentdate
.
day
)
text
=
'@'
+
zhibanren
[
currentday
][
1
]
+
',值班同学辛苦啦~ '
\
ll_text
=
'@'
+
ll_zhibanren
[
currentday
][
1
]
+
',值班同学辛苦啦~ '
\
'
\n
> **不要忘记发值班日报并记录值班问题哦~** [去记录](http://cf.dui88.com/pages/viewpage.action?pageId=99955951) '
ll_at
=
{
'atMobiles'
:
[
ll_zhibanren
[
currentday
][
1
]]}
Remind
.
send_markdown
(
ll_token
,
ll_secret
,
'值班提醒'
,
ll_text
,
ll_at
)
gg_text
=
'@'
+
gg_zhibanren
[
currentday
][
1
]
+
',值班同学辛苦啦~ '
\
'
\n
> **不要忘记发值班日报并记录值班问题哦~** [去记录](http://cf.dui88.com/pages/viewpage.action?pageId=99955951) '
gg_at
=
{
'atMobiles'
:
[
gg_zhibanren
[
currentday
][
1
]]}
Remind
.
send_markdown
(
gg_token
,
gg_secret
,
'值班提醒'
,
gg_text
,
gg_at
)
cx_text
=
'@'
+
cx_zhibanren
[
currentday
][
1
]
+
',值班同学辛苦啦~ '
\
'
\n
> **不要忘记发值班日报并记录值班问题哦~** [去记录](http://cf.dui88.com/pages/viewpage.action?pageId=99955951) '
at
=
{
'atMobiles'
:
[
zhibanren
[
currentday
][
1
]]}
Remind
.
send_markdown
(
token
,
secret
,
'值班提醒'
,
text
,
at
)
cx_at
=
{
'atMobiles'
:
[
cx_
zhibanren
[
currentday
][
1
]]}
Remind
.
send_markdown
(
cx_token
,
cx_secret
,
'值班提醒'
,
cx_text
,
cx_
at
)
@
classmethod
def
UI
(
cls
,
data1
,
file_name
):
...
...
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