fix:上传logo--debug模式

This commit is contained in:
momo 2023-10-30 14:43:33 +08:00
parent 5773f159d2
commit 50fd645a1f

View File

@ -222,6 +222,11 @@ func (l *UploadLogoDebugLogic) UploadLogoDebug(req *types.UploadLogoDebugReq, us
colors := make([][]string, 0, 10)
SelectedColorIndex := 0
isDefaultTemplateTag := false
//查看用户素材中标签对应的颜色
if colorsSet, ok := mapMaterialTemplateTagColors[*templateTagInfo.TemplateTag]; ok {
//标签颜色
colors = colorsSet
}
var templateTagGroups []interface{}
if templateTagInfo.Groups != nil && *templateTagInfo.Groups != "" {
if err = json.Unmarshal([]byte(*templateTagInfo.Groups), &templateTagGroups); err != nil {