From e557b00c24ffa6eab2f6b17fbc90f92bac5c1318 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 12 Dec 2025 19:16:15 -0800 Subject: [PATCH] =?UTF-8?q?fix(reward-service):=20=E4=BF=AE=E5=A4=8D=20tar?= =?UTF-8?q?getType=20=E7=B1=BB=E5=9E=8B=E6=96=AD=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/application/services/reward-application.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/services/reward-service/src/application/services/reward-application.service.ts b/backend/services/reward-service/src/application/services/reward-application.service.ts index 63c84828..d6e8a130 100644 --- a/backend/services/reward-service/src/application/services/reward-application.service.ts +++ b/backend/services/reward-service/src/application/services/reward-application.service.ts @@ -56,8 +56,8 @@ export class RewardApplicationService { // 2. 调用 wallet-service 执行真正的资金分配 // 字段映射:targetType=USER/SYSTEM, targetId=accountSequence, allocationType=rightType - const allocations = rewards.map(reward => ({ - targetType: reward.accountSequence.startsWith('S') ? 'SYSTEM' : 'USER', + const allocations: import('../../infrastructure/external/wallet-service/wallet-service.client').FundAllocationItem[] = rewards.map(reward => ({ + targetType: (reward.accountSequence.startsWith('S') ? 'SYSTEM' : 'USER') as 'USER' | 'SYSTEM', targetId: reward.accountSequence, // 使用 accountSequence 而不是 userId allocationType: reward.rewardSource.rightType, amount: reward.usdtAmount.amount,