diff --git a/app/http/entities/front/Voucher.go b/app/http/entities/front/Voucher.go index 9e0b91d..bb49994 100644 --- a/app/http/entities/front/Voucher.go +++ b/app/http/entities/front/Voucher.go @@ -40,8 +40,8 @@ func (this *MilkVoucherList) ResponseFromDb(in productsmodel.MilkProductsList) { this.VoucherTitle = in.Name this.VoucherUrl = config.GetConf().YouChu.VoucherUrl + "?product_id=" + in.Id this.VoucherIcon = in.MainImage - this.VoucherAmount = in.ShowPrice - this.VoucherOriginalPrice = in.Price + this.VoucherAmount = in.Price + this.VoucherOriginalPrice = in.ShowPrice stock, _ := strconv.Atoi(in.Stock) if stock > 0 { this.VoucherStatus = "1"