2026-07-30 21:47:41 +08:00
|
|
|
|
# 瓶安芯用户端
|
|
|
|
|
|
|
2026-08-02 01:30:07 +08:00
|
|
|
|
Android/iOS/Web Flutter 客户端。首期只接入 `/heqi/client/v1/user` 的真实能力:首页安全内容与服务归属、商城、订单、合同、工单、钱包、地址和个人资料。
|
2026-07-30 21:47:41 +08:00
|
|
|
|
|
|
|
|
|
|
## 本地运行
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
flutter pub get
|
|
|
|
|
|
flutter run --dart-define=API_BASE_URL=http://10.0.2.2:12426
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Android 模拟器访问宿主机使用 `10.0.2.2`;iOS Simulator 使用 `http://127.0.0.1:12426`。Release 环境必须注入 HTTPS 地址。
|
|
|
|
|
|
|
|
|
|
|
|
## 质量检查
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
flutter analyze
|
|
|
|
|
|
flutter test
|
|
|
|
|
|
flutter build apk --debug
|
|
|
|
|
|
flutter build ios --simulator --no-codesign
|
2026-08-02 01:30:07 +08:00
|
|
|
|
flutter build web --release --dart-define=API_BASE_URL=https://api.example.com
|
2026-07-30 21:47:41 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
2026-08-02 01:30:07 +08:00
|
|
|
|
仓库根目录可使用 `API_BASE_URL=https://api.example.com ./scripts/build-apps.sh user_app all` 同时生成 Android 和 Web 产物。Web 本地调试使用 `flutter run -d chrome --dart-define=API_BASE_URL=http://127.0.0.1:12426`;生产环境必须使用 HTTPS API 地址。
|
|
|
|
|
|
|
2026-07-30 21:47:41 +08:00
|
|
|
|
充值 Mock 确认、设备控制、收藏、押金、消息和发票均不在 Release UI 暴露。
|