11
This commit is contained in:
@@ -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.GetTemplateSwitchInfo,err:%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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user