Files
FruitServer/docs/plans/INBOX.md
T

34 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# INBOX
## [已处理] K74-A 客户端开发默认地址改为本机地址 10.39.237.1
### 背景
当前 Mac 的 Wi-Fi 地址为 `10.39.237.1`(路由器 10.39.237.58),本机后端已重启并监听 8081,
`http://10.39.237.1:8081/app/categories` 返回 200。需要把客户端开发默认地址从公网改回本机。
### 改动
1. `lib/core/config/app_config.dart`
- `devHostBaseUrl` 改为 `'http://10.39.237.1:8081'`(不带结尾斜杠)
- 注释保持「换网络时只改这一行」的说明
- 探测候选去重逻辑保持不变(当前 devHost 与 public 不同,`publicBaseUrl` 仍保留在候选里,
顺序仍为 `127.0.0.1 → 10.39.237.1 → 公网`)
2. `test/config/server_endpoint_test.dart`
- 字面量断言同步改为 `'http://10.39.237.1:8081'`
### 验收
- 门禁:`dart analyze lib test` 零告警、`flutter test` 全过、`flutter build apk --debug` 成功。
- 提供说明:该地址随网络变化,换网时只改 `devHostBaseUrl` 一行。
### Git
- 从 `develop` 拉 `chore/dev-host-local-ip`。
- 提交:`chore(config): 开发默认地址改回本机 10.39.237.1`,作者 `Zhou Weidong <502333560@qq.com>`。
- `--no-ff` 合回 `develop` 并 push;`FruitServer/docs/plans/PROGRESS.md` 追加 K74-A 留痕。
### 约束
- 全程中文;禁止 `git add -A`;除上述两个文件外不改其它内容;完成后停住等待验收。