From 19747c0e50ec9c51ab8bbd5c56fa6d71450ef59f Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 8 May 2022 00:43:26 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=82=E7=9C=8B=E4=BA=BA=E6=95=B0=E6=98=BE?= =?utf8?q?=E7=A4=BA=E6=96=B0=E5=A2=9E=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- Reply/Reply.go | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/Reply/Reply.go b/Reply/Reply.go index a99e95f..1f876cf 100644 --- a/Reply/Reply.go +++ b/Reply/Reply.go @@ -321,8 +321,9 @@ func (replyF) user_toast_msg(s string) { //HeartBeat-心跳用来传递人气值 var ( - renqi_old int - continuity int + renqi_old int + watched_old int + continuity int ) func (replyF) heartbeat(s int) { @@ -331,7 +332,8 @@ func (replyF) heartbeat(s int) { return } //人气为1,不输出 var ( - tmp string + tmp string + tmp2 string ) if renqi_old != 0 { if s > renqi_old { @@ -355,12 +357,15 @@ func (replyF) heartbeat(s int) { } tmp = `(` + tmp + `)` } - + if watched_old != 0 { + tmp2 += `(+` + strconv.Itoa(c.C.Watched-watched_old) + `)` + } if renqi_old != s { - fmt.Printf("\t人气:%d %s\t观看人数:%d\n", s, tmp, c.C.Watched) + fmt.Printf("\t人气:%d %s\t观看人数:%d %s\n", s, tmp, c.C.Watched, tmp2) } reply_log.Base_add(`人气`).Log_show_control(false).L(`I: `, "当前人气", s) renqi_old = s + watched_old = c.C.Watched } //Msg-房间特殊活动 -- 2.39.2