From 6a0aa360f31a86b31119eedb510641f42b34bb13 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Mon, 21 Oct 2024 16:28:23 +0800 Subject: [PATCH] 333 --- api/controller/Question.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/controller/Question.go b/api/controller/Question.go index 781689e..887ef00 100644 --- a/api/controller/Question.go +++ b/api/controller/Question.go @@ -570,7 +570,7 @@ func (b *Question) GetQuestionPrice(c *gin.Context) { for _, question := range questions { // 总价 - price = price + math.Round(question.Price*100)/100 + price = price + math.Round(question.Price*100) // 处理折扣价格 if question.DiscountPrice != nil { @@ -594,7 +594,7 @@ func (b *Question) GetQuestionPrice(c *gin.Context) { } var g dto.QuestionPriceDto - g.Price = price + g.Price = price / 100 if discountPrice != nil { u := *discountPrice / 100 g.DiscountPrice = &u