333
This commit is contained in:
parent
7cbe9beaba
commit
6a0aa360f3
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user