update
This commit is contained in:
1 parent
163f6cf48d
commit
353f1db25d
19 files changed
+205
-118
No files matched your search
@@ -9,7 +9,7 @@ import time
|
||||
import yaml
|
||||
|
||||
def gen_sign():
|
||||
with open('./config.yaml', 'r', encoding="utf-8") as file:
|
||||
with open('./config/config.yaml', 'r', encoding="utf-8") as file:
|
||||
config = yaml.safe_load(file)
|
||||
secret = f"{config['fs_secret']}"
|
||||
# print(secret)
|
||||
|
||||
@@ -7,7 +7,7 @@ from email.mime.text import MIMEText
|
||||
from email.header import Header
|
||||
|
||||
# 加载参数
|
||||
with open('./config.yaml', 'r', encoding="utf-8") as file:
|
||||
with open('./config/config.yaml', 'r', encoding="utf-8") as file:
|
||||
config = yaml.safe_load(file)
|
||||
mail_host = f"{config['mail_host']}"
|
||||
mail_user = f"{config['mail_user']}"
|
||||
|
||||
@@ -9,7 +9,7 @@ import hmac
|
||||
import time
|
||||
import yaml
|
||||
|
||||
with open('./config.yaml', 'r', encoding="utf-8") as file:
|
||||
with open('./config/config.yaml', 'r', encoding="utf-8") as file:
|
||||
config = yaml.safe_load(file)
|
||||
webhook_url = f"https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key={config['wx_key']}"
|
||||
# print(webhook_url)
|
||||
|
||||
Reference in new issue
Block a user