From f045cdfb62954404d38fcdf4c7685dabe58753b1 Mon Sep 17 00:00:00 2001 From: qydysky Date: Sun, 15 Nov 2020 06:06:20 +0800 Subject: [PATCH] =?utf8?q?=E8=90=A5=E6=94=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- CV/Var.go | 2 +- Reply/F.go | 2 +- Reply/Reply.go | 6 +++--- demo/config_F.json | 1 + 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/CV/Var.go b/CV/Var.go index e6aa187..3c3909e 100644 --- a/CV/Var.go +++ b/CV/Var.go @@ -6,7 +6,7 @@ var ( Roomid int Cookie string Title string - Rev int//营收 + Rev float64//营收 ) //from player-loader-2.0.11.min.js diff --git a/Reply/F.go b/Reply/F.go index f5f6893..92e8c97 100644 --- a/Reply/F.go +++ b/Reply/F.go @@ -121,7 +121,7 @@ func ShowRecf(){ if!IsOn("ShowRec") {return} for { p.Sys().Timeoutf(60) - p.Logf().New().Open("danmu.log").Base(1, "Rec").I("营收 ¥", c.Rec) + p.Logf().New().Open("danmu.log").Base(1, "Rec").I("营收 ¥", c.Rev) } } diff --git a/Reply/Reply.go b/Reply/Reply.go index 6ac15bb..d3760ef 100644 --- a/Reply/Reply.go +++ b/Reply/Reply.go @@ -143,7 +143,7 @@ func (replyF) user_toast_msg(s string){ } if price != nil { sh = append(sh, "¥", int(price.(float64)) / 1000) - c.Rev += int(price.(float64)) / 1000 + c.Rev += price.(float64) / 1000 } {//额外 ass Assf(fmt.Sprintln(sh...)) @@ -311,7 +311,7 @@ func (replyF) send_gift(s string){ if total_coin != nil { allprice = int64(total_coin.(float64) / 1000) sh = append(sh, "¥", allprice) - c.Rev += int(allprice) + c.Rev += total_coin.(float64) / 1000 } if len(sh) == 0 {return} @@ -416,7 +416,7 @@ func (replyF) super_chat_message(s string){ } if price != nil { sh = append(sh, "¥", price, "\n") - c.Rev += int(price.(float64)) + c.Rev += price.(float64) } fmt.Println("====") fmt.Println(sh...) diff --git a/demo/config_F.json b/demo/config_F.json index 944a7bc..0a56f78 100644 --- a/demo/config_F.json +++ b/demo/config_F.json @@ -1,4 +1,5 @@ { + "ShowRec":true, "Gtk": true, "Qtd": false, "Saveflv": false, -- 2.39.2