Commit 1f941649 authored by TesterYao's avatar TesterYao

1

parent 0da35fe0
......@@ -6,17 +6,20 @@ import requests
import time
import urllib
def send_messages(content):
def send_messages(content,mobile):
webhook = 'https://oapi.dingtalk.com/robot/send?access_token='
headers = {"Content-Type": "application/json; charset=utf-8"}
token = '76332b31c5604e23d386c771202f4581a3bed8b4e73df7968f34e19b1f284738'
secret = 'SECb4efc8c7305357f3b0beb1b53650061a7f165ae5e247a03533e02156f3fbad5a'
atMobiles = ['17816616945','13875018906','18612924181']
if mobile:
atMobiles.append(mobile)
data_info = {
"msgtype": "text",
"text": {
"content": content
},
"at": {'atMobiles': ['15010432637','13875018906','18518552824','18612924181']}
"at": {'atMobiles': atMobiles}
}
timestamp = str(round(time.time() * 1000))
# 密钥进行编码
......
......@@ -66,6 +66,11 @@ if __name__ == '__main__':
if check_domain(v):
ding_list.append(v)
if ding_list.count(v)<4:
if k.find('&')>-1:
title = k.split('&')[0]
phone = k.split('&')[1]
send_messages(title + '被封,被封链接为:' + v,phone)
else:
send_messages(k+'被封,被封链接为:' + v)
if k.startswith('全民'):
qm.post_block_list(v)
......@@ -81,3 +86,6 @@ if __name__ == '__main__':
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