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
3d7b9df5
Commit
3d7b9df5
authored
Jul 06, 2021
by
TesterYao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加流量线测试群提醒
parent
91232c26
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
0 deletions
+27
-0
task.py
robot/task.py
+27
-0
No files found.
robot/task.py
View file @
3d7b9df5
...
@@ -99,6 +99,16 @@ class Task:
...
@@ -99,6 +99,16 @@ class Task:
[
'陶燕红'
,
'15061800715'
]]
[
'陶燕红'
,
'15061800715'
]]
cx_token
=
'786c9b2957e6fdf44d91df3bc02f86ff5196ac39f31726d2b7055189b7355ed7'
cx_token
=
'786c9b2957e6fdf44d91df3bc02f86ff5196ac39f31726d2b7055189b7355ed7'
cx_secret
=
'SECcc1be901d1ed9099e35711da3df17f090b780a44318abae72dac68c860a5548e'
cx_secret
=
'SECcc1be901d1ed9099e35711da3df17f090b780a44318abae72dac68c860a5548e'
bq_zhibanren
=
[[
'雷婷婷'
,
'15858168079'
],
[
'周梓武'
,
'15932935281'
],
[
'韩占利'
,
'13116742018'
],
[
'杨贺晨吉'
,
'13588735854'
],
[
'余宁宁'
,
'15356195820'
],
[
'廖锟'
,
'15168288343'
],
[
'王鹏飞'
,
'18621027261'
]]
bq_token
=
'915e0bb0729a82575d2b77bf8e89a986eae0d8592842a1966d6a4d748df8dcd3'
bq_secret
=
'SEC257309c734c7c21888355a3ae7106ba2fa3a2c59aceb4304995f01882be36cd9'
# 获取当天日期
# 获取当天日期
currentdate
=
datetime
.
date
.
today
()
currentdate
=
datetime
.
date
.
today
()
currentday
=
calendar
.
weekday
(
currentdate
.
year
,
currentdate
.
month
,
currentdate
.
day
)
currentday
=
calendar
.
weekday
(
currentdate
.
year
,
currentdate
.
month
,
currentdate
.
day
)
...
@@ -111,6 +121,9 @@ class Task:
...
@@ -111,6 +121,9 @@ class Task:
cx_text
=
'今日技术值班人:'
+
cx_zhibanren
[
currentday
][
0
]
+
',请关注问题反馈群,及时跟进群任务'
cx_text
=
'今日技术值班人:'
+
cx_zhibanren
[
currentday
][
0
]
+
',请关注问题反馈群,及时跟进群任务'
cx_at
=
{
'atMobiles'
:
[
cx_zhibanren
[
currentday
][
1
]]}
cx_at
=
{
'atMobiles'
:
[
cx_zhibanren
[
currentday
][
1
]]}
Remind
.
send_messages
(
cx_token
,
cx_secret
,
cx_text
,
cx_at
)
Remind
.
send_messages
(
cx_token
,
cx_secret
,
cx_text
,
cx_at
)
bq_text
=
'今日技术值班人:'
+
bq_zhibanren
[
currentday
][
0
]
+
',请关注问题反馈群,及时跟进群任务'
bq_at
=
{
'atMobiles'
:
[
bq_zhibanren
[
currentday
][
1
]]}
Remind
.
send_messages
(
bq_token
,
bq_secret
,
bq_text
,
bq_at
)
@
classmethod
@
classmethod
def
zhiban1
(
cls
):
def
zhiban1
(
cls
):
...
@@ -143,6 +156,16 @@ class Task:
...
@@ -143,6 +156,16 @@ class Task:
[
'陶燕红'
,
'15061800715'
]]
[
'陶燕红'
,
'15061800715'
]]
cx_token
=
'786c9b2957e6fdf44d91df3bc02f86ff5196ac39f31726d2b7055189b7355ed7'
cx_token
=
'786c9b2957e6fdf44d91df3bc02f86ff5196ac39f31726d2b7055189b7355ed7'
cx_secret
=
'SECcc1be901d1ed9099e35711da3df17f090b780a44318abae72dac68c860a5548e'
cx_secret
=
'SECcc1be901d1ed9099e35711da3df17f090b780a44318abae72dac68c860a5548e'
bq_zhibanren
=
[[
'雷婷婷'
,
'15858168079'
],
[
'周梓武'
,
'15932935281'
],
[
'韩占利'
,
'13116742018'
],
[
'杨贺晨吉'
,
'13588735854'
],
[
'余宁宁'
,
'15356195820'
],
[
'廖锟'
,
'15168288343'
],
[
'王鹏飞'
,
'18621027261'
]]
bq_token
=
'915e0bb0729a82575d2b77bf8e89a986eae0d8592842a1966d6a4d748df8dcd3'
bq_secret
=
'SEC257309c734c7c21888355a3ae7106ba2fa3a2c59aceb4304995f01882be36cd9'
# 获取当天日期
# 获取当天日期
currentdate
=
datetime
.
date
.
today
()
currentdate
=
datetime
.
date
.
today
()
currentday
=
calendar
.
weekday
(
currentdate
.
year
,
currentdate
.
month
,
currentdate
.
day
)
currentday
=
calendar
.
weekday
(
currentdate
.
year
,
currentdate
.
month
,
currentdate
.
day
)
...
@@ -158,6 +181,10 @@ class Task:
...
@@ -158,6 +181,10 @@ class Task:
'
\n
> **不要忘记发值班日报并记录值班问题哦~** [去记录](http://cf.dui88.com/pages/viewpage.action?pageId=111230681) '
'
\n
> **不要忘记发值班日报并记录值班问题哦~** [去记录](http://cf.dui88.com/pages/viewpage.action?pageId=111230681) '
cx_at
=
{
'atMobiles'
:
[
cx_zhibanren
[
currentday
][
1
]]}
cx_at
=
{
'atMobiles'
:
[
cx_zhibanren
[
currentday
][
1
]]}
Remind
.
send_markdown
(
cx_token
,
cx_secret
,
'值班提醒'
,
cx_text
,
cx_at
)
Remind
.
send_markdown
(
cx_token
,
cx_secret
,
'值班提醒'
,
cx_text
,
cx_at
)
bq_text
=
'@'
+
bq_zhibanren
[
currentday
][
1
]
+
',值班同学辛苦啦~ '
\
'
\n
> **不要忘记发值班日报并记录值班问题哦~** [去记录](http://cf.dui88.com/pages/viewpage.action?pageId=111230681) '
bq_at
=
{
'atMobiles'
:
[
bq_zhibanren
[
currentday
][
1
]]}
Remind
.
send_markdown
(
bq_token
,
bq_secret
,
'值班提醒'
,
bq_text
,
bq_at
)
@
classmethod
@
classmethod
def
UI
(
cls
,
data1
,
file_name
):
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