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:
parent
6d5c5f7e4c
commit
56f2fd206d
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue