jack há 1 ano atrás
pai
commit
79e289f969
1 ficheiros alterados com 1 adições e 1 exclusões
  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: