mirror of
https://github.com/Sitoi/dailycheckin.git
synced 2024-11-17 21:58:03 +08:00
适配 docker
This commit is contained in:
parent
c014c27da9
commit
15a9399bad
2
index.py
2
index.py
@ -112,7 +112,7 @@ def main_handler(event, context):
|
||||
message = event.get("Message")
|
||||
else:
|
||||
message = None
|
||||
with open(os.path.join(os.path.dirname(os.path.dirname(__file__)), "config.json"), "r", encoding="utf-8") as f:
|
||||
with open(os.path.join(os.path.dirname(__file__), "config.json"), "r", encoding="utf-8") as f:
|
||||
data = json.loads(f.read())
|
||||
dingtalk_secret = data.get("dingtalk", {}).get("dingtalk_secret")
|
||||
dingtalk_access_token = data.get("dingtalk", {}).get("dingtalk_access_token")
|
||||
|
Loading…
Reference in New Issue
Block a user