From aa3151baa539ad564fa8dc21968effa8018c1e0c Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Sun, 4 Jan 2026 18:26:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=95=B4=E6=8A=A5=E8=A1=A8?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/tools/bbxt/bbxt.go | 2 +- internal/tools/bbxt/excel.go | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/tools/bbxt/bbxt.go b/internal/tools/bbxt/bbxt.go index 5b23866..688e446 100644 --- a/internal/tools/bbxt/bbxt.go +++ b/internal/tools/bbxt/bbxt.go @@ -14,7 +14,7 @@ import ( const ( RedStyle = "${color: FF0000;horizontal:center;vertical:center;borderColor:#000000}" - GreenStyle = "${color: 3e7c41;horizontal:center;vertical:center;borderColor:#000000}" + GreenStyle = "${color: 008000;horizontal:center;vertical:center;borderColor:#000000}" ) var ( diff --git a/internal/tools/bbxt/excel.go b/internal/tools/bbxt/excel.go index 1a6b6eb..1744f76 100644 --- a/internal/tools/bbxt/excel.go +++ b/internal/tools/bbxt/excel.go @@ -143,7 +143,9 @@ func SetStyle(styleMap map[string]string, f *excelize.File) (int, error) { // 设置字体颜色 if colorHex, exists := styleMap["color"]; exists { style.Font = &excelize.Font{ - Color: colorHex, + Color: colorHex, + Family: "SimHei", + Bold: true, } } // 设置水平对齐