Commit 90b62139 authored by 刘丙寅's avatar 刘丙寅

完善代码逻辑

parent af08188c
Personnel_list={
20210501:"莹莹,奉龙,伟男",
20210510:"刘丙寅"
20210509:"淑琴,婷婷",
20210515:"崔鑫,艮霞",
20210522:"张慧,丙寅",
20210529:"韧开、林颖",
20210605:"莹莹、伟男",
20210612:"奉龙、陈雪",
20210619:"淑琴、婷婷"
}
......@@ -30,6 +30,8 @@ def test():
if int(format_tomorrow) in days and int(format_today) not in days:
worker = peizhi.Personnel_list.get(int(format_tomorrow))
message = worker
if worker == None:
message = "还没有分配具体的值班人员请尽快分配"
dd_url = "https://oapi.dingtalk.com/robot/send?access_token=062ab7f98f47c85e6c200efd21ae5d532e4f1bbfd6782ae1268b9a1f4d3dc7b9"
text = "明日开始休息:本次值班人员为:%s 值班人员记得带 电脑,手机, vpn环境" % {message}
json_text = {
......
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