This commit is contained in:
wucongxing8150 2024-09-05 13:29:37 +08:00
parent 4f335a8b5e
commit d3c4715258

View File

@ -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("价格异常")
}