From 01afa3aa716d730c9d7aa39205369de6454bb10c Mon Sep 17 00:00:00 2001 From: hackrobot Date: Wed, 10 Apr 2024 20:02:14 +0800 Subject: [PATCH] upate --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 46cfcdc..a7d2da1 100644 --- a/main.py +++ b/main.py @@ -27,7 +27,7 @@ from pydantic import BaseModel import utils import requests import config -from urllib.parse import quote +from urllib.parse import quote,unquote models.Base.metadata.create_all(bind=engine) @@ -113,7 +113,7 @@ def read_users(wxid, db: Session = Depends(get_db)): @app.get("/h5group") # 群-异度星球 49187487591@chatroom chatroom def h5group(nickname, db: Session = Depends(get_db)): - newtext = quote(nickname, 'utf-8') + newtext = unquote(nickname, 'utf-8') print(newtext) # 判断是否在群中 inGroup = False