Commit 3d7b9df5 authored by TesterYao's avatar TesterYao

增加流量线测试群提醒

parent 91232c26
...@@ -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):
......
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