update
This commit is contained in:
+9
-6
@@ -368,13 +368,16 @@ async def main():
|
||||
}
|
||||
|
||||
|
||||
# 执行
|
||||
def send_email(text):
|
||||
title = '60S - ' + str(datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
|
||||
sub = '60S'
|
||||
SendEmail(subject=sub, title=title, text=text).send()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
result = asyncio.run(main())
|
||||
# print(result['html']) # HTML内容
|
||||
# print(result['text']) # 是纯文本内容
|
||||
# result['data'] 是原始数据
|
||||
title = '60S - ' + str(datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
|
||||
sub = '60S'
|
||||
SendEmail(subject=sub, title=title, text=result['text']).send()
|
||||
# print(result['text']) # 纯文本内容
|
||||
# result['data'] 原始数据
|
||||
# send_email(result['text'])
|
||||
print("执行完成!")
|
||||
|
||||
Reference in New Issue
Block a user