This commit is contained in:
wucongxing8150 2024-10-21 16:28:23 +08:00
parent 7cbe9beaba
commit 6a0aa360f3

View File

@ -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