diff --git a/backend/api-gateway/kong.yml b/backend/api-gateway/kong.yml index 73422823..45a14208 100644 --- a/backend/api-gateway/kong.yml +++ b/backend/api-gateway/kong.yml @@ -48,6 +48,10 @@ services: paths: - /api/v1/identity/health strip_path: true + - name: identity-admin-pending-actions + paths: + - /api/v1/admin/pending-actions + strip_path: false # --------------------------------------------------------------------------- # Wallet Service - 钱包服务 diff --git a/frontend/mobile-app/lib/core/services/pending_action_service.dart b/frontend/mobile-app/lib/core/services/pending_action_service.dart index 956a5c71..96a4f445 100644 --- a/frontend/mobile-app/lib/core/services/pending_action_service.dart +++ b/frontend/mobile-app/lib/core/services/pending_action_service.dart @@ -155,19 +155,20 @@ class PendingActionService { try { final response = await _apiClient.get(ApiEndpoints.pendingActions); - debugPrint('[PendingActionService] 响应: $response'); + final data = response.data; + debugPrint('[PendingActionService] 响应: $data'); - if (response is Map) { - return PendingActionsResponse.fromJson(response); + if (data is Map) { + return PendingActionsResponse.fromJson(data); } // 如果返回的是列表 - if (response is List) { + if (data is List) { return PendingActionsResponse( - actions: response + actions: data .map((e) => PendingAction.fromJson(e as Map)) .toList(), - count: response.length, + count: data.length, ); }