From b75ea173644ad4de93a218737d8187c799533b35 Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Thu, 15 May 2025 11:00:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E9=80=8F=E6=98=8E?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/xibao/image_gen.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service/xibao/image_gen.go b/service/xibao/image_gen.go index b94837d..92ec578 100644 --- a/service/xibao/image_gen.go +++ b/service/xibao/image_gen.go @@ -168,9 +168,9 @@ func GenerateCongratulationImageNew(text string, inputFile, outputFile string, i var textColor color.RGBA if isGood { // 设置文本颜色为红色 - textColor = color.RGBA{R: 255 * 0.8, G: 0, B: 0, A: 255} + textColor = color.RGBA{R: 255 * 0.8, G: 0, B: 0, A: 0} } else { - textColor = color.RGBA{R: 0, G: 0, B: 255 * 0.8, A: 255} + textColor = color.RGBA{R: 0, G: 0, B: 255 * 0.8, A: 0} } textImage, err := text2img.RenderTextToTrimmedImage(nil, text, 48, textColor, 0, 0) if err != nil {