From 63f1bd69300f222c74ed809b299d4a33d89204d5 Mon Sep 17 00:00:00 2001 From: timerzz Date: Sat, 15 Jun 2024 23:48:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E6=9C=80=E4=BE=BF=E5=AE=9C=E7=9A=84=E6=96=B9=E6=A1=88=E5=90=8E?= =?UTF-8?q?=EF=BC=8C=E6=88=90=E6=9C=AC=E4=B8=8D=E5=8F=98=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/product/model.go | 1 + 1 file changed, 1 insertion(+) diff --git a/model/product/model.go b/model/product/model.go index 7a682fd..819670a 100644 --- a/model/product/model.go +++ b/model/product/model.go @@ -96,6 +96,7 @@ func (p *Product) fillPriceStatus(tx *gorm.DB) { func (p *Product) CalCNY(calculateProcess []CalculateProcess) { env := p.Env() var calculateStrings = make([]string, 0, len(calculateProcess)) + p.CNYPrice = 0 for _, c := range calculateProcess { process, price := c.Calculate(env) if process != "" {