From b75e93167df45ac1db5b338f143097ad86c6fca5 Mon Sep 17 00:00:00 2001 From: xingc Date: Mon, 21 Apr 2025 18:25:33 +0800 Subject: [PATCH] =?UTF-8?q?fix(auth):=20=E4=BF=AE=E5=A4=8D4001=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=A0=81=E4=B8=8D=E6=A0=87=E5=87=86=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E7=94=A8status?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/routers/auth/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/routers/auth/routes.py b/core/routers/auth/routes.py index 274e821..5281052 100644 --- a/core/routers/auth/routes.py +++ b/core/routers/auth/routes.py @@ -78,7 +78,7 @@ async def wechat_login( if user is None: if not payload.encrypted_data or not payload.iv: await redis_conn.set(keyname, ujson.encode(wechat_session), ex=60 * 5) - raise HTTPException(4001, detail='首次登录需要用户授权信息') + return {'status': 4001, 'message': '首次登录需要用户授权信息'} if all([ # payload.phone,