From 9b8f720915b85476ea235beb97aff7d01306e6de Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 30 Jan 2026 21:03:59 -0800 Subject: [PATCH] =?UTF-8?q?fix(trading-service):=20C2C=E5=8D=96=E5=8D=95?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E5=BC=BA=E5=88=B6=E8=A6=81=E6=B1=82Kava?= =?UTF-8?q?=E9=92=B1=E5=8C=85=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit executeTransfer不使用sellerKavaAddress,C2C交易是积分值划转+外部绿积分支付, 不涉及Kava链上操作。改为可选获取,失败不阻断订单创建。 Co-Authored-By: Claude Opus 4.5 --- .../trading-service/src/application/services/c2c.service.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/services/trading-service/src/application/services/c2c.service.ts b/backend/services/trading-service/src/application/services/c2c.service.ts index af0c0773..07e286d7 100644 --- a/backend/services/trading-service/src/application/services/c2c.service.ts +++ b/backend/services/trading-service/src/application/services/c2c.service.ts @@ -118,13 +118,11 @@ export class C2cService { throw new BadRequestException('最小交易数量为1'); } - // 卖单:自动获取卖家 Kava 地址(用于绿积分转账) + // 卖单:尝试获取卖家 Kava 地址(非必需,C2C交易不涉及链上操作) let sellerKavaAddress: string | null = null; if (type === C2C_ORDER_TYPE.SELL) { sellerKavaAddress = await this.identityClient.getUserKavaAddress(accountSequence); - if (!sellerKavaAddress) { - throw new BadRequestException('未找到您的 Kava 钱包地址,请先绑定钱包'); - } + // Kava 地址仅作为订单附加信息,获取失败不阻断创建 } // 计算总金额