This commit is contained in:
laodaming
2023-09-12 17:59:07 +08:00
parent 6e42d9d218
commit df73e8d5ce
3 changed files with 3 additions and 16 deletions

View File

@@ -74,11 +74,7 @@ func (l *LogoCombineLogic) LogoCombine(req *types.LogoCombineReq, userinfo *auth
logc.Errorf(l.ctx, "productTemplateV2Model.FindOne%v", err)
return resp.SetStatus(basic.CodeServiceErr, "模版不存在")
}
templateSwitchInfo, err := template_switch_info.GetTemplateSwitchInfo(req.TemplateId, productTemplateV2Info.TemplateInfo, *productTemplateV2Info.MaterialImg)
if err != nil {
logc.Errorf(l.ctx, "template_switch_info.GetTemplateSwitchInfoerr%v", err)
return resp.SetStatus(basic.CodeServiceErr, "默认模版不存在")
}
templateSwitchInfo := template_switch_info.GetTemplateSwitchInfo(req.TemplateId, productTemplateV2Info.TemplateInfo, *productTemplateV2Info.MaterialImg)
if req.Address == "" && templateSwitchInfo.MaterialData.Address.IfShow {
req.Address = templateSwitchInfo.MaterialData.Address.DefaultValue
}