From ecaaf68a271d0e2a14ff09e93f8adfdca7fa93c7 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 1 Mar 2026 09:52:19 -0800 Subject: [PATCH] =?UTF-8?q?fix(wallet):=20settle=20=E6=97=B6=E6=B8=85?= =?UTF-8?q?=E9=99=A4=20pending=5Fexpire=5Fat=20=E9=81=BF=E5=85=8D=E6=AE=8B?= =?UTF-8?q?=E7=95=99=E5=80=92=E8=AE=A1=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit settleUserPendingRewards 全量结算后 pendingUsdt=0, 但 pendingExpireAt 未清除导致 API 仍返回过期时间。 与 expirePendingReward/claimRewards 行为保持一致。 Co-Authored-By: Claude Opus 4.6 --- .../src/application/services/wallet-application.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/services/wallet-service/src/application/services/wallet-application.service.ts b/backend/services/wallet-service/src/application/services/wallet-application.service.ts index 72769f52..3f787282 100644 --- a/backend/services/wallet-service/src/application/services/wallet-application.service.ts +++ b/backend/services/wallet-service/src/application/services/wallet-application.service.ts @@ -2431,6 +2431,8 @@ export class WalletApplicationService { // 同时减少 pending 余额 pendingUsdt: { decrement: totalUsdt }, pendingHashpower: { decrement: totalHashpower }, + // [2026-03-01] 清除过期时间,避免前端残留倒计时 + pendingExpireAt: null, }, });