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}