修改会员价格问题
This commit is contained in:
@@ -97,7 +97,12 @@ func (b *OrderMember) AddOrderMember(c *gin.Context) {
|
||||
userCouponId = &id
|
||||
}
|
||||
|
||||
if req.OrderPrice < 0 {
|
||||
if req.OrderPrice == nil {
|
||||
responses.FailWithMessage("订单金额错误", c)
|
||||
return
|
||||
}
|
||||
|
||||
if *req.OrderPrice < 0 {
|
||||
responses.FailWithMessage("价格错误", c)
|
||||
return
|
||||
}
|
||||
|
||||
@@ -97,6 +97,11 @@ func (b *OrderSingle) AddOrderSingle(c *gin.Context) {
|
||||
userCouponId = &id
|
||||
}
|
||||
|
||||
if req.OrderPrice == nil {
|
||||
responses.FailWithMessage("订单金额错误", c)
|
||||
return
|
||||
}
|
||||
|
||||
if *req.OrderPrice < 0 {
|
||||
responses.FailWithMessage("价格错误", c)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user