]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
营收
authorqydysky <qydysky@foxmail.com>
Sat, 14 Nov 2020 22:06:20 +0000 (06:06 +0800)
committerqydysky <qydysky@foxmail.com>
Sat, 14 Nov 2020 22:06:20 +0000 (06:06 +0800)
CV/Var.go
Reply/F.go
Reply/Reply.go
demo/config_F.json

index e6aa1878262b5e31d347cdef40b278bcc0b20bd3..3c3909ed54e05e56272dd83859fe030d4f274d29 100644 (file)
--- 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
index f5f689304124c901e7b60305f50ad3bbff9d2ab7..92e8c97d33a3ce6a16cca9e4743ebfab774324db 100644 (file)
@@ -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)
        }
 }
 
index 6ac15bb86977409ed0988d36a053afc07c39dafe..d3760ef3a9d27612c206894a1f788ec85ae69c59 100644 (file)
@@ -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...)
index 944a7bceed1de00f90942d69c277f9d617991021..0a56f78ddec2560982f68ca880c19a557eba6107 100644 (file)
@@ -1,4 +1,5 @@
 {
+    "ShowRec":true,
     "Gtk": true,
     "Qtd": false,
     "Saveflv": false,