diff --git a/modify.md b/modify.md index 1099f07..eb54090 100644 --- a/modify.md +++ b/modify.md @@ -46,4 +46,9 @@ ### 路由管理器实例调用修复 - 修复了 `app/core/app/factory.py` 中路由注册失败的问题 - 将 `RouterManager.register_all_routers(app)` 改为使用全局实例 `router_manager.register_all_routers(app)` -- 解决了 "路由注册失败" 错误,因为之前错误地调用了类方法而不是实例方法 \ No newline at end of file +- 解决了 "路由注册失败" 错误,因为之前错误地调用了类方法而不是实例方法 + +### python-multipart依赖启用 +- 在 `requirements.txt` 中启用了 `python-multipart==0.0.6` 依赖 +- 解决了FastAPI路由注册时提示需要安装python-multipart的错误 +- 虽然代码中没有直接使用表单数据,但FastAPI在某些情况下会自动检测到可能需要处理表单数据 \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 5ab3016..65e8749 100644 --- a/requirements.txt +++ b/requirements.txt @@ -31,4 +31,4 @@ paramiko==3.3.1 # passlib[bcrypt]==1.7.4 # 文件上传(如果需要) -# python-multipart==0.0.6 \ No newline at end of file +python-multipart==0.0.6 \ No newline at end of file