Commit 53597985 by 陈森彬

更改短信发送

parent 62c5b8c6
Showing with 2 additions and 2 deletions
......@@ -27,10 +27,10 @@ def dd_send_msg(msg, robot=tom):
m.update(str(cur_time).encode())
d.update((m.hexdigest() + 'fh6y5t4rr351d2c3bryi').encode())
data = {'data': "{\"content\": \"%s\"}" % (content), 'touser': "[\"15113123231\",]", 'keyword': 'monitoring-py',
data = {'data': "{\"content\": \"%s\"}" % (content), 'touser': "[\"15113123231\"]", 'keyword': 'monitoring-py',
'fromuser': '', 'wechat_data': '', 'is_oversea': '', 'channel_type': '', 'is_ignore': '', 'ex_int': '',
'ex_str': '', 'k2': d.hexdigest(), 'k1': str(cur_time)}
requests.post(msgapi_url, data=data)
if __name__ == "__main__":
dd_send_msg('喂喂 你发的太多了!')
dd_send_msg('digikey喂喂 你发的太多了!')
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 sign in to comment