diff --git a/frontend/mobile-app/lib/core/services/planting_service.dart b/frontend/mobile-app/lib/core/services/planting_service.dart index f277f7c4..67f7dd2c 100644 --- a/frontend/mobile-app/lib/core/services/planting_service.dart +++ b/frontend/mobile-app/lib/core/services/planting_service.dart @@ -142,21 +142,21 @@ class PlantingService { /// 选择省市 /// /// [orderNo] 订单号 - /// [provinceCode] 省份代码 - /// [cityCode] 城市代码 + /// [provinceName] 省份名称 + /// [cityName] 城市名称 Future selectProvinceCity( String orderNo, - String provinceCode, - String cityCode, + String provinceName, + String cityName, ) async { try { - debugPrint('[PlantingService] 选择省市: orderNo=$orderNo, province=$provinceCode, city=$cityCode'); + debugPrint('[PlantingService] 选择省市: orderNo=$orderNo, province=$provinceName, city=$cityName'); final response = await _apiClient.post( '/planting/orders/$orderNo/select-province-city', data: { - 'provinceCode': provinceCode, - 'cityCode': cityCode, + 'provinceName': provinceName, + 'cityName': cityName, }, ); diff --git a/frontend/mobile-app/lib/features/planting/presentation/pages/planting_location_page.dart b/frontend/mobile-app/lib/features/planting/presentation/pages/planting_location_page.dart index af095daa..e798f6df 100644 --- a/frontend/mobile-app/lib/features/planting/presentation/pages/planting_location_page.dart +++ b/frontend/mobile-app/lib/features/planting/presentation/pages/planting_location_page.dart @@ -126,8 +126,8 @@ class _PlantingLocationPageState extends ConsumerState { // 1. 选择省市 await plantingService.selectProvinceCity( widget.orderNo, - _selectedProvinceCode!, - _selectedCityCode!, + _selectedProvinceName!, + _selectedCityName!, ); // 2. 确认省市选择