fix(auth): 修复4001状态码不标准问题,改用status
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user