From c7978f6fb550d14ac02b5f2163124becfd0bb4db Mon Sep 17 00:00:00 2001 From: hailin Date: Tue, 3 Feb 2026 09:21:39 -0800 Subject: [PATCH] =?UTF-8?q?fix(mining-wallet-service):=20pool-account=20GE?= =?UTF-8?q?T=20:type=20=E6=94=B9=E4=B8=BA=20@Public()=20=E5=85=81=E8=AE=B8?= =?UTF-8?q?=E5=86=85=E7=BD=91=E6=9C=8D=E5=8A=A1=E9=97=B4=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit mining-admin-service 通过 fetch 查询余额时无 token,@AdminOnly() 导致 401,UI 始终显示 0.00 Co-Authored-By: Claude Opus 4.5 --- .../src/api/controllers/pool-account.controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/mining-wallet-service/src/api/controllers/pool-account.controller.ts b/backend/services/mining-wallet-service/src/api/controllers/pool-account.controller.ts index 88345657..bde71f32 100644 --- a/backend/services/mining-wallet-service/src/api/controllers/pool-account.controller.ts +++ b/backend/services/mining-wallet-service/src/api/controllers/pool-account.controller.ts @@ -58,8 +58,8 @@ export class PoolAccountController { } @Get(':type') - @AdminOnly() - @ApiOperation({ summary: '获取特定类型池账户' }) + @Public() + @ApiOperation({ summary: '获取特定类型池账户(内网服务间调用)' }) async findByType(@Param('type') type: PoolAccountType) { return this.poolAccountService.findByType(type); }