1
This commit is contained in:
parent
4f335a8b5e
commit
d3c4715258
@ -131,6 +131,9 @@ func (r *OrderSingleService) AddOrderSingle(tx *gorm.DB, UserId, QuestionId int6
|
||||
|
||||
// 实际付款金额
|
||||
paymentAmountTotal = amountTotal - couponAmountTotal
|
||||
if paymentAmountTotal < 0 {
|
||||
paymentAmountTotal = 0
|
||||
}
|
||||
if *orderPrice != paymentAmountTotal {
|
||||
return nil, errors.New("价格异常")
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user