Files
FruitServer/docs/plans/INBOX.md
T

32 lines
1.2 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
## [已处理] K76-A 开发默认地址改回 192.168.31.187
### 背景
Mac 的 Wi-Fi 地址已从 `10.39.237.1` 变回 `192.168.31.187`,本机后端已重启并监听 8081,
`http://192.168.31.187:8081/app/categories` 返回 200。客户端需要同步改回该地址。
### 改动
1. `lib/core/config/app_config.dart`
- `devHostBaseUrl` 改为 `'http://192.168.31.187:8081'`(不带结尾斜杠)
- 注释保持「换网络时只改这一行」的说明
2. `test/config/server_endpoint_test.dart`
- 字面量断言同步改为 `'http://192.168.31.187:8081'`
### 验收
- 门禁:`dart analyze lib test` 零告警、`flutter test` 全过、`flutter build apk --debug` 成功。
- 探测顺序保持 `127.0.0.1 → 192.168.31.187 → 公网 39.162.50.99`。
### Git
- 从 `develop` 拉 `chore/dev-host-192-168-31-187`。
- 提交:`chore(config): 开发默认地址改回 192.168.31.187`,作者 `Zhou Weidong <502333560@qq.com>`。
- `--no-ff` 合回 `develop` 并 push;`FruitServer/docs/plans/PROGRESS.md` 追加 K76-A 留痕。
### 约束
- 全程中文;禁止 `git add -A`;除上述两个文件外不改其它内容;完成后停住等待验收。