import os errx2 = "测试\n" os.system("curl \'https://qyapi.weixin.qq.cbin/webhook/send?key=d16ee504-29a0-486c-8a75-168d4de155ca\' -H \'Content-Type: application/json\' -d \'{\"msgtype\": \"text\",\"text\": {\"content\": \"%s\"}}\'"%(errx2))
import os
import time
errx2 = "@所有人,发日报、带工牌、换鞋子,三不为乐捐225且珍惜!"
countInit = 0
max_r = 2
while countInit < max_r:
try:
#os.system("curl \'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=d16ee504-29a0-48 xxxxx\' -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=fa4c44bc-e88e-48ce-a663-be6adac5fdad\' -H \'Content-Type: application/json\' -d \'{\"msgtype\": \"text\",\"text\": {\"content\": \"%s\"}}\'"%(errx2))
time.sleep(5)
break
except:
pass