修复旅拍相册 API 未注入共享 APIClient 导致未登录错误。
在 RootView 注入 travelAlbumAPI,并将 travel_album 纳入首页常用功能;补充 App/Networking 依赖注入说明。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@ -108,6 +108,8 @@ token: <token>
|
||||
|
||||
空 token 不会写入 Header。
|
||||
|
||||
全 App 应只存在一个 `APIClient` 实例,由 `RootView` 创建并传给各业务 `*API`;token provider 也只在此 client 上绑定一次。为何通过 Environment 下发而非单例,见 [App 模块依赖注入说明](../App/App.md#依赖注入为何-api-走-environment-而非单例)。
|
||||
|
||||
## 环境选择
|
||||
|
||||
`APIEnvironment.current` 根据编译环境选择接口地址:
|
||||
|
||||
Reference in New Issue
Block a user