Przeglądaj źródła

add:增加代码

zhusc 2 miesięcy temu
rodzic
commit
0550bd4921
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      coze_bot_api.py

+ 1 - 1
coze_bot_api.py

@@ -255,7 +255,7 @@ async def verify(msg_signature: str, timestamp: str, nonce: str, echostr: str):
 user_bot_id_mapping = {}
 #
 @app.post("/bot")
-async def recv(msg_signature: str, timestamp: str, nonce: str, request: Request, background_tasks: BackgroundTasks):
+async def recv(msg_signature: str, timestamp: str, nonce: str, request: Request):
     #start_time = time.time()
     body = await request.body()
     request_id = str(uuid.uuid4())