兼容接入商品固定价格字段
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user