fix(reporting-service): extract data from wrapped API response

wallet-service API 返回 { success, data } 格式,需要解析 response.data.data

🤖 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 2026-01-04 23:20:38 -08:00
parent 6d5c5f7e4c
commit 56f2fd206d
1 changed files with 3 additions and 2 deletions

View File

@ -134,10 +134,11 @@ export class WalletServiceClient {
this.logger.debug(`[getAllSystemAccounts] 请求: ${url}`);
const response = await firstValueFrom(
this.httpService.get<AllSystemAccountsResponse>(url),
this.httpService.get<{ success: boolean; data: AllSystemAccountsResponse }>(url),
);
return response.data;
// wallet-service 返回 { success: true, data: { fixedAccounts, ... } }
return response.data.data;
} catch (error) {
this.logger.error(`[getAllSystemAccounts] 失败: ${error.message}`);
return {