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:
parent
3635369a8a
commit
b9e9bb6e4e
|
|
@ -42,7 +42,7 @@ export class SystemAccountsService {
|
|||
try {
|
||||
const response = await firstValueFrom(
|
||||
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(
|
||||
this.httpService.get(
|
||||
`${miningServiceUrl}/admin/system-accounts/${accountType}/records`,
|
||||
`${miningServiceUrl}/api/v2/mining/admin/system-accounts/${accountType}/records`,
|
||||
{ params },
|
||||
),
|
||||
);
|
||||
|
|
@ -360,7 +360,7 @@ export class SystemAccountsService {
|
|||
|
||||
const response = await firstValueFrom(
|
||||
this.httpService.get(
|
||||
`${miningServiceUrl}/admin/system-accounts/${accountType}/transactions`,
|
||||
`${miningServiceUrl}/api/v2/mining/admin/system-accounts/${accountType}/transactions`,
|
||||
{ params },
|
||||
),
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue