From: qydysky Date: Wed, 11 Dec 2024 13:56:32 +0000 (+0800) Subject: Improve 统一营收格式 (#130) X-Git-Tag: v0.14.25~4 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=087537b4f7e77419de2779ccc4aecf410d14acbd;p=bili_danmu%2F.git Improve 统一营收格式 (#130) --- diff --git a/Reply/Reply.go b/Reply/Reply.go index 523e225..1154b96 100644 --- a/Reply/Reply.go +++ b/Reply/Reply.go @@ -440,7 +440,7 @@ func (t replyF) user_toast_msg(s string) { sh = append(sh, role_name) } if price != 0 { - sh_log = append(sh, "ï¿¥", price/1000) //不在界面显示价格 + sh_log = append(sh, fmt.Sprintf("ï¿¥%d", price/1000)) //不在界面显示价格 t.Common.Danmu_Main_mq.Push_tag(`c.Rev_add`, struct { Roomid int Rev float64 @@ -1023,7 +1023,7 @@ func (t replyF) super_chat_message(s string) { logg := sh if price != 0 { sh = append(sh, "\n") //界面不显示价格 - logg = append(logg, "ï¿¥", price) + logg = append(logg, fmt.Sprintf("ï¿¥%d", price)) t.Common.Danmu_Main_mq.Push_tag(`c.Rev_add`, struct { Roomid int Rev float64