From b843e02039675ea7b7a53a637af9dfe03fd1f673 Mon Sep 17 00:00:00 2001 From: xingc Date: Tue, 22 Apr 2025 18:14:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(auth):=20=E4=BF=AE=E5=A4=8Dcode=E7=99=BB?= =?UTF-8?q?=E5=BD=95=EF=BC=8C=E7=94=9F=E6=88=90token=20id=E4=BC=A0?= =?UTF-8?q?=E9=80=92=E9=94=99=E8=AF=AF?= 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 4304380..5157b42 100644 --- a/core/routers/auth/routes.py +++ b/core/routers/auth/routes.py @@ -103,7 +103,7 @@ async def wechat_login( await redis_conn.delete(keyname) result = create_access_token({ - 'sub': str(user.id) + 'sub': str(user.user_id) }) return {'data': result}