From b72b17e543e012e0e6afcf36d905ff9b00b1877f Mon Sep 17 00:00:00 2001 From: jhc Date: Wed, 12 Mar 2025 11:09:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/service/bundle/logic/signContract.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/service/bundle/logic/signContract.go b/pkg/service/bundle/logic/signContract.go index 96a9db8..296dab6 100644 --- a/pkg/service/bundle/logic/signContract.go +++ b/pkg/service/bundle/logic/signContract.go @@ -14,6 +14,7 @@ import ( "log" "net/http" "os" + "strconv" "time" ) @@ -181,7 +182,7 @@ func InsertSignatureV1(templatePath, outputPath, signImgPath, companyImgPath, co pdf.SetPage(pricePage) pdf.SetX(379) pdf.SetY(639) - pdf.Cell(nil, price) + pdf.Cell(nil, strconv.FormatFloat(float64(price), 'f', 2, 32)) // 写 有效期 t := time.Now().AddDate(int(contractDuration), 0, 0)