fix(mobile): add 5s delay before confirm-province-city API call

Backend requires 5 seconds wait time after selectProvinceCity before
confirmProvinceCity can be called. Added delay to comply with this rule.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-10 08:30:52 -08:00
parent c887cf7ec6
commit d84fc9409b
1 changed files with 6 additions and 2 deletions

View File

@ -132,10 +132,14 @@ class _PlantingLocationPageState extends ConsumerState<PlantingLocationPage> {
cityName: _selectedCityName!,
);
// 2.
// 2. 55
debugPrint('[PlantingLocationPage] 等待5秒确认时间...');
await Future.delayed(const Duration(seconds: 5));
// 3.
await plantingService.confirmProvinceCity(widget.orderNo);
// 3.
// 4.
await plantingService.payOrder(widget.orderNo);
if (mounted) {