Compare commits

..

2 Commits

Author SHA1 Message Date
qiangyanwen b2777663ba add test 2023-01-16 18:11:41 +08:00
qiangyanwen 489c398815 add test 2023-01-08 15:37:09 +08:00
2 changed files with 0 additions and 2 deletions

View File

@ -44,7 +44,6 @@ def parse_token(token: str = Depends(auth)):
detail="token不正确或已过期",
headers={"WWW-Authenticate": "Bearer"}
)
try:
jwt_data = jwt.decode(token, settings.ACCESS.SECRET_KEY, algorithms=settings.ACCESS.ALGORITHM)
user_id = jwt_data.get("id")

View File

@ -6,7 +6,6 @@
import psutil
import datetime
import time
from entity.memory_entity import SysModel
async def get_sys_info():