Compare commits
No commits in common. "b2777663ba921627c6d94b655965e6947b36c1d0" and "9d4f77e95fa07cd57733486ed0c73124780c51e5" have entirely different histories.
b2777663ba
...
9d4f77e95f
|
|
@ -44,6 +44,7 @@ def parse_token(token: str = Depends(auth)):
|
||||||
detail="token不正确或已过期",
|
detail="token不正确或已过期",
|
||||||
headers={"WWW-Authenticate": "Bearer"}
|
headers={"WWW-Authenticate": "Bearer"}
|
||||||
)
|
)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
jwt_data = jwt.decode(token, settings.ACCESS.SECRET_KEY, algorithms=settings.ACCESS.ALGORITHM)
|
jwt_data = jwt.decode(token, settings.ACCESS.SECRET_KEY, algorithms=settings.ACCESS.ALGORITHM)
|
||||||
user_id = jwt_data.get("id")
|
user_id = jwt_data.get("id")
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
import psutil
|
import psutil
|
||||||
import datetime
|
import datetime
|
||||||
import time
|
import time
|
||||||
|
from entity.memory_entity import SysModel
|
||||||
|
|
||||||
|
|
||||||
async def get_sys_info():
|
async def get_sys_info():
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue