From 6efa31f7d03d4d5e9a6b0252d8133fa72a2f3721 Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 28 Jul 2024 18:09:24 +0800 Subject: [PATCH] =?utf8?q?Fix=20=E8=A1=A8=E6=83=85=E4=BB=A3=E7=A0=81?= =?utf8?q?=E5=8C=85=E5=90=AB=E6=96=87=E4=BB=B6=E5=90=8D=E9=9D=9E=E6=B3=95?= =?utf8?q?=E5=AD=97=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/F/danmuEmotes/danmuEmotes.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Reply/F/danmuEmotes/danmuEmotes.go b/Reply/F/danmuEmotes/danmuEmotes.go index 1b3d454..22bd3f9 100644 --- a/Reply/F/danmuEmotes/danmuEmotes.go +++ b/Reply/F/danmuEmotes/danmuEmotes.go @@ -52,10 +52,10 @@ func saveEmote(ctx context.Context, ptr Danmu) (ret any, err error) { if url, ok := m[`url`].(string); ok { if !strings.Contains(*ptr.Msg, "[") { if emoticon_unique, ok := m[`emoticon_unique`].(string); ok { - *ptr.Msg = "[" + hashr(*ptr.Msg+emoticon_unique) + "]" + *ptr.Msg = "[" + *ptr.Msg + emoticon_unique + "]" } } - + *ptr.Msg = hashr(*ptr.Msg) savePath := "emots/" + *ptr.Msg + ".png" if !file.New(savePath, 0, true).IsExist() { go func() { @@ -103,7 +103,7 @@ func saveEmote(ctx context.Context, ptr Danmu) (ret any, err error) { continue } - savePath := hashr("emots/" + k + ".png") + savePath := "emots/" + hashr(k) + ".png" if file.New(savePath, 0, true).IsExist() { continue } -- 2.39.2