From 06255fb075e5286a201584ece71bee37f65ad2dc Mon Sep 17 00:00:00 2001 From: Joftal <42807405+Joftal@users.noreply.github.com> Date: Wed, 27 May 2026 16:17:15 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E8=BD=AC?= =?UTF-8?q?=E4=B9=89bug=E5=92=8CSC=E9=A2=9C=E8=89=B2=E6=94=B9=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/recorders/danmaku/ass.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/recorders/danmaku/ass.go b/src/recorders/danmaku/ass.go index f80bf83..02ebf46 100644 --- a/src/recorders/danmaku/ass.go +++ b/src/recorders/danmaku/ass.go @@ -106,7 +106,7 @@ func scTierColor(price int) string { case price >= 2000: return "&H80E73CC6" // 紫色 #C678F5 case price >= 1000: - return "&H80396AFF" // 深红 #FF6A39 + return "&H8030CAFF" // 橙金 #FFCA30 case price >= 500: return "&H80396AFF" // 红色 #FF6A39 case price >= 200: @@ -401,6 +401,8 @@ func escapeText(s string) string { result := make([]byte, 0, len(s)) for i := 0; i < len(s); i++ { switch s[i] { + case '\\': + result = append(result, '\\', '\\') case '\n': result = append(result, '\\', 'n') case '\r':