From 56effeba55982004e6fd69a22d4ba1a2d7aafcf0 Mon Sep 17 00:00:00 2001 From: "qiyunfanbo126.com" <815699> Date: Wed, 10 Jul 2024 14:25:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/http/entities/front/Voucher.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"