兼容接入商品固定价格字段

This commit is contained in:
yml
2026-05-24 18:13:20 +08:00
parent 14aafcf728
commit e69d08ca9f
15 changed files with 153 additions and 32 deletions
+1 -1
View File
@@ -211,7 +211,7 @@ func validateRequest(req CreateRequest, rules publishRules) error {
if strings.TrimSpace(req.ServerRegion) == "" {
return ErrMissingServerRegion
}
if req.PriceHourly <= 0 {
if normalizedListingPrice(req) <= 0 {
return ErrInvalidPrice
}
if req.DepositAmount < 0 {