适配 docker

This commit is contained in:
shitao 2020-12-12 08:56:39 +08:00
parent c014c27da9
commit 15a9399bad

View File

@ -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")