fix(trading-service): C2C卖单不再强制要求Kava钱包地址
executeTransfer不使用sellerKavaAddress,C2C交易是积分值划转+外部绿积分支付, 不涉及Kava链上操作。改为可选获取,失败不阻断订单创建。 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
9e83127113
commit
9b8f720915
|
|
@ -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 地址仅作为订单附加信息,获取失败不阻断创建
|
||||
}
|
||||
|
||||
// 计算总金额
|
||||
|
|
|
|||
Loading…
Reference in New Issue