This commit is contained in:
2025-01-14 15:12:43 +08:00
parent 5611157f5a
commit 98b7cb080b
7 changed files with 723 additions and 216 deletions
+2 -1
View File
@@ -16,7 +16,8 @@ def send_batch_email(receiver_email_list, subject, content, file_path=None):
"""
# sender config
sender_email = "ArmorServer@outlook.com"
password = "ServerOnly2024!"
# password = "ServerOnly2024!"
password = 'fczojhcahxwonosh'
# mail content
message = MIMEMultipart()
+13
View File
@@ -1,6 +1,7 @@
import requests
import json
import os
import random
from pathlib import Path
@@ -62,5 +63,17 @@ def validate_token(token):
return True
def random_time(start_time=480, end_time=720):
# 生成从8*60(480)到12*60(720)之间的随机分钟数
random_minutes = random.randint(start_time, end_time)
# 将分钟数转换成小时和分钟
hour = random_minutes // 60
minute = random_minutes % 60
# 返回格式化的时间
return "{:02}:{:02}".format(hour, minute)
if __name__ == '__main__':
print(load_user_config())