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