更新AI写作指导模块

新增发音测试模块
翻译模块使用实时刷新策略
This commit is contained in:
Miyamizu-MitsuhaSang 2025-11-02 12:43:00 +08:00
parent ff9b8d0f4e
commit 5d3038a471
1 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ from app.api.user.routes import users_router
from app.api.word_comment.routes import word_comment_router from app.api.word_comment.routes import word_comment_router
from app.core.redis import init_redis, close_redis from app.core.redis import init_redis, close_redis
from app.utils.phone_encrypt import PhoneEncrypt from app.utils.phone_encrypt import PhoneEncrypt
from settings import TORTOISE_ORM from settings import ONLINE_SETTINGS
@asynccontextmanager @asynccontextmanager
@ -46,7 +46,7 @@ app.add_middleware(
register_tortoise( register_tortoise(
app=app, app=app,
config=TORTOISE_ORM, config=ONLINE_SETTINGS,
) )
app.include_router(users_router, tags=["User API"], prefix="/users") app.include_router(users_router, tags=["User API"], prefix="/users")