From 50fd645a1f10896f38a5f5a60dfef9cdaf83996d Mon Sep 17 00:00:00 2001 From: momo <1012651275@qq.com> Date: Mon, 30 Oct 2023 14:43:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=B8=8A=E4=BC=A0logo--debug=E6=A8=A1?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/upload/internal/logic/uploadlogodebuglogic.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/upload/internal/logic/uploadlogodebuglogic.go b/server/upload/internal/logic/uploadlogodebuglogic.go index f2d66dba..a1aacbcd 100644 --- a/server/upload/internal/logic/uploadlogodebuglogic.go +++ b/server/upload/internal/logic/uploadlogodebuglogic.go @@ -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 {