优化估值检测
This commit is contained in:
+5
-10
@@ -4,7 +4,9 @@ import requests
|
||||
import shutil
|
||||
import os
|
||||
import sys
|
||||
import logging
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
result = []
|
||||
|
||||
# ##### 1. 融合每天检测
|
||||
@@ -132,22 +134,14 @@ try:
|
||||
if len(result) == 0:
|
||||
result.append('融合检测完毕未发现异常文件')
|
||||
shutil.rmtree(path + "/" + date)
|
||||
else:
|
||||
result.append(" @高娟 ")
|
||||
|
||||
except Exception as ex:
|
||||
result.append(" @高娟 ")
|
||||
result.append(str(ex))
|
||||
|
||||
|
||||
# In[82]:
|
||||
|
||||
|
||||
print(result)
|
||||
|
||||
|
||||
|
||||
# In[76]:
|
||||
|
||||
|
||||
infos = "【" + date + "自动检测】"
|
||||
for item in result:
|
||||
infos += item + "\n"
|
||||
@@ -157,6 +151,7 @@ data = {
|
||||
"content": infos
|
||||
}
|
||||
}
|
||||
log.info(data)
|
||||
# 发送消息至群
|
||||
requests.post(url='https://oapi.dingtalk.com/robot/send?access_token=1b6d0d782d3c316f2d3b6b18ea5144816170dd392befbf2042a24a01fb84b736',
|
||||
json=data)
|
||||
|
||||
Reference in New Issue
Block a user