feat:更新博客访客记录

This commit is contained in:
2025-09-28 18:42:08 +08:00
parent bd1d10e0f7
commit b6617d3db2
4 changed files with 166 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ pwd_context = CryptContext(schemes=["bcrypt"], deprecated="auto")
oauth2_scheme = OAuth2PasswordBearer(tokenUrl="session")
# 请求上下文
context_sub: ContextVar[str] = ContextVar('sub')
context_sub: ContextVar[str] = ContextVar('sub', default='')
# 获取数据库 加密密码