jack 1 년 전
부모
커밋
79e289f969
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -10,7 +10,7 @@ GOTIFY_URL = "https://gotify.erhe.top"
 async def receive_checkchan_webhook(key: str, title: str, message: str):
     if not key:
         raise HTTPException(status_code=400, detail="Missing required parameter 'key'")
-    if key != 'A_SgWPLrgFAXm0d':
+    if key not in  ['A_SgWPLrgFAXm0d', 'A9KF--mx_12PjSu', 'A0Xg6ZE5946iBYg']:
         raise HTTPException(status_code=401, detail="Invalid API key")
     
     try: