fix(mining-admin): 修正调用mining-service的URL路径,补全/api/v2/mining前缀

mining-service有全局前缀api/v2和控制器前缀mining/admin,
但mining-admin-service的HTTP调用缺少这两个前缀导致404,
错误被catch静默吞掉,前端显示空数据。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-01 07:34:21 -08:00
parent 3635369a8a
commit b9e9bb6e4e
1 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ export class SystemAccountsService {
try { try {
const response = await firstValueFrom( const response = await firstValueFrom(
this.httpService.get<MiningServiceResponse>( this.httpService.get<MiningServiceResponse>(
`${miningServiceUrl}/admin/system-accounts`, `${miningServiceUrl}/api/v2/mining/admin/system-accounts`,
), ),
); );
@ -316,7 +316,7 @@ export class SystemAccountsService {
const response = await firstValueFrom( const response = await firstValueFrom(
this.httpService.get( this.httpService.get(
`${miningServiceUrl}/admin/system-accounts/${accountType}/records`, `${miningServiceUrl}/api/v2/mining/admin/system-accounts/${accountType}/records`,
{ params }, { params },
), ),
); );
@ -360,7 +360,7 @@ export class SystemAccountsService {
const response = await firstValueFrom( const response = await firstValueFrom(
this.httpService.get( this.httpService.get(
`${miningServiceUrl}/admin/system-accounts/${accountType}/transactions`, `${miningServiceUrl}/api/v2/mining/admin/system-accounts/${accountType}/transactions`,
{ params }, { params },
), ),
); );