]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
营收处理逻辑
authorqydysky <qydysky@foxmail.com>
Sun, 15 Nov 2020 02:14:40 +0000 (10:14 +0800)
committerqydysky <qydysky@foxmail.com>
Sun, 15 Nov 2020 02:14:40 +0000 (10:14 +0800)
Reply/F.go
Reply/Reply.go
demo/config_F.json

index 5a9eefa2ba2ac5e07fa12a515d0af1a145f31e30..c2f571269acda808170fcbf0ea99b6ded440a085 100644 (file)
@@ -125,12 +125,12 @@ var (
 func ShowRevf(){
        if!IsOn("ShowRev") {return}
        if ShowRev_start {
-               p.Logf().New().Open("danmu.log").Base(1, "Rev").I("营收 ¥", ShowRev_old)
+               p.Logf().New().Open("danmu.log").Base(1, "Rev").I("营收 ¥", c.Rev)
                return
        }
        ShowRev_start = true
        for {
-               p.Logf().New().Open("danmu.log").Base(1, "Rev").I("营收 ¥", ShowRev_old)
+               p.Logf().New().Open("danmu.log").Base(1, "Rev").I("营收 ¥", c.Rev)
                for c.Rev == ShowRev_old {p.Sys().Timeoutf(60)}
                ShowRev_old = c.Rev
        }
index 9bd1da95a535334b45d5d7ed834a2ee17dc111ce..6518efd36888265511cb6d4001fd462c409d8ef0 100644 (file)
@@ -359,6 +359,7 @@ func (replyF) preparing(s string) {
                        Obs_R(false)
                        Obsf(false)
                        Saveflv_wait()
+                       c.Rev = 0
                        go ShowRevf()
                }
                if p.Sys().Type(roomid) == "float64" {
index 91fc59e1ce235b7cf266f747ceb4d71ad5b15dd9..ea13ad641b0acbb789ac3e4bf908dc7ace9c1273 100644 (file)
@@ -2,7 +2,7 @@
     "ShowRev":true,
     "Gtk": true,
     "Qtd": false,
-    "Saveflv": true,
+    "Saveflv": false,
     "Ass": true,
     "Obs": false,
     "Autoban": false,