社区微信群开通啦,扫一扫抢先加入社区官方微信群
社区微信群
def test_004_robot(self):
headers = {"Content-Type": "text/plain"}
s="卖品,打印码:{},验证码{}".format({str(printCode)},{str(verifyCode)})
data = {
"msgtype": "text",
"text": {
"content": s,
}
}
r = requests.post(
url='https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=d7786b44-84d3-400a-a018-999999999999',
headers=headers, json=data)
print(r.text)
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!