This commit is contained in:
laodaming 2023-06-25 12:16:40 +08:00
parent 81b315b12b
commit 4d4381b196

View File

@ -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