fix:修复转义bug和SC颜色改色

This commit is contained in:
Joftal committed 2026-05-27 16:17:15 +08:00
1 parent 374c86a8e9
commit 06255fb075
1 file changed
+3 -1
+3 -1
View File
@@ -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':