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