Revert "fix(trading-service): C2C卖单不再强制要求Kava钱包地址"

This reverts commit 9b8f720915.
This commit is contained in:
hailin 2026-01-30 21:04:27 -08:00
parent 9b8f720915
commit f167f1227c
1 changed files with 4 additions and 2 deletions

View File

@ -118,11 +118,13 @@ export class C2cService {
throw new BadRequestException('最小交易数量为1');
}
// 卖单:尝试获取卖家 Kava 地址非必需C2C交易不涉及链上操作
// 卖单:自动获取卖家 Kava 地址(用于绿积分转账
let sellerKavaAddress: string | null = null;
if (type === C2C_ORDER_TYPE.SELL) {
sellerKavaAddress = await this.identityClient.getUserKavaAddress(accountSequence);
// Kava 地址仅作为订单附加信息,获取失败不阻断创建
if (!sellerKavaAddress) {
throw new BadRequestException('未找到您的 Kava 钱包地址,请先绑定钱包');
}
}
// 计算总金额