问题原因: ApiClient使用内存缓存的token,登录后虽然保存到SharedPreferences, 但ApiClient的内存缓存未更新,导致后续请求仍使用旧token或无token。 解决方案: 移除内存缓存,每次请求都从SharedPreferences读取最新token, 确保登录后立即生效。 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| android | ||
| assets | ||
| ios | ||
| lib | ||
| test | ||
| .gitignore | ||
| .metadata | ||
| DEVELOPMENT_GUIDE.md | ||
| README.md | ||
| analysis_options.yaml | ||
| pubspec.yaml | ||
README.md
mining_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.