import os
import time
errx2 = "@所有人,发日报、带工牌、换鞋子。"
countInit = 0
max_r = 5
while countInit < max_r:
countInit = countInit + 1
print(countInit)
try:
#countInit = countInit + 1
#print(countInit)
#os.system("curl \'https://qyapi.weixin.qq.com/cgi-bin/web\' -H \'Content-Type: application/json\' -d \'{\"msgtype\": \"text\",\"text\": {\"content\": \"%s\"}}\'"%(errx2))
os.system("curl \'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=854c31f8-3654-4ddc-9324-\' -H \'Content-Type: application/json\' -d \'{\"msgtype\": \"text\",\"text\": {\"content\": \"%s\"}}\'"%(errx2))
time.sleep(300)
except:
pass
#break