rwadurian/frontend/mobile-app
Developer ad739a83f8 fix(mobile-app): 修复 API 请求路径缺少 /api/v1 前缀问题
问题原因:
- 原 ApiClient baseUrl 为 'https://rwaapi.szaiai.com'
- 请求路径为 '/user/auto-create'
- 实际请求: https://rwaapi.szaiai.com/user/auto-create (错误)
- 正确路径: https://rwaapi.szaiai.com/api/v1/user/auto-create

解决方案:
- 新增 AppConfig 配置管理类
- 支持多环境配置 (dev/staging/prod)
- apiBaseUrl 已包含 /api/v1 前缀
- 支持 --dart-define=ENV=dev 切换环境

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 08:41:37 -08:00
..
.claude . 2025-12-01 20:48:31 -08:00
android build: 配置 Android Release 签名和构建优化 2025-12-01 18:37:27 -08:00
assets . 2025-11-30 06:44:57 -08:00
docs . 2025-11-30 06:44:57 -08:00
ios feat: 添加5页向导页和首次打开检测功能 2025-11-27 00:39:29 -08:00
lib fix(mobile-app): 修复 API 请求路径缺少 /api/v1 前缀问题 2025-12-03 08:41:37 -08:00
linux Flutter v0.1 draft ok 2025-11-25 20:09:50 -08:00
macos . 2025-12-01 19:19:00 -08:00
scripts feat: 增强移动端版本管理功能 2025-12-03 06:57:26 -08:00
test . 2025-11-30 06:44:57 -08:00
web . 2025-11-24 21:59:41 -08:00
windows Flutter v0.1 draft ok 2025-11-25 20:09:50 -08:00
.gitignore build: 配置 Android Release 签名和构建优化 2025-12-01 18:37:27 -08:00
.metadata . 2025-11-24 21:59:41 -08:00
CLAUDE.md . 2025-11-24 21:59:41 -08:00
README.MD . 2025-11-24 21:59:41 -08:00
analysis_options.yaml . 2025-11-24 21:59:41 -08:00
flutter_android_update_guide.md > 2025-11-27 02:45:35 -08:00
flutter_telemetry_solution.md > 2025-11-27 02:45:35 -08:00
pubspec.lock . 2025-12-01 19:19:00 -08:00
pubspec.yaml . 2025-12-01 19:19:00 -08:00

README.MD

Create Flutter Framework

C:\Users\ph\Desktop\app>flutter create --org com.rwadurian rwa_android_app
Creating project rwa_android_app...
Resolving dependencies in `rwa_android_app`... (3.7s)
Downloading packages...
Got dependencies in `rwa_android_app`.
Wrote 130 files.

All done!
You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider: https://www.youtube.com/c/flutterdev

In order to run your application, type:

  $ cd rwa_android_app
  $ flutter run

Your application code is in rwa_android_app\lib\main.dart.

rwa_android_app

A new Flutter project.

Getting Started

This project is a starting point for a Flutter application.

A few resources to get you started if this is your first Flutter project:

For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.