From 4d4381b1962c9b517164233fec08da45ad3f4da5 Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Sun, 25 Jun 2023 12:16:40 +0800 Subject: [PATCH] fix --- server/product-templatev2/internal/logic/updatetemplatelogic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/product-templatev2/internal/logic/updatetemplatelogic.go b/server/product-templatev2/internal/logic/updatetemplatelogic.go index 814acf7b..b7951e60 100644 --- a/server/product-templatev2/internal/logic/updatetemplatelogic.go +++ b/server/product-templatev2/internal/logic/updatetemplatelogic.go @@ -68,6 +68,7 @@ func (l *UpdateTemplateLogic) UpdateTemplate(req *types.UpdateTemplateReq, r *ht return resp.SetStatusWithMessage(basic.CodeServiceErr, "failed to marshal template data") } templateInfoJson := string(templateInfoBytes) + //保存模板宽高 var logoWidth int64 var logoHeight int64 for _, v := range req.TemplateData.MaterialList { @@ -77,7 +78,6 @@ func (l *UpdateTemplateLogic) UpdateTemplate(req *types.UpdateTemplateReq, r *ht logoHeight, _ = v["height"].(json.Number).Int64() } } - //保存模板宽高 isPublic := int64(0) if req.TemplateData.IsPublic { isPublic = 1