新增最小购买数量控制 & 购买前检查实名

This commit is contained in:
2026-04-20 11:20:44 +08:00
parent a964fe4d69
commit 982cbb4cab
6 changed files with 29 additions and 1 deletions

View File

@@ -182,6 +182,9 @@ func TradeCreate(c *fiber.Ctx) error {
if err != nil {
return err
}
if authCtx.User.IDType == m.UserIDTypeUnverified {
return core.NewBizErr("请先实名认证后再购买")
}
// 解析请求参数
req := new(TradeCreateReq)