]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
fix
authorqydysky <qydysky@foxmail.com>
Tue, 9 Mar 2021 10:18:43 +0000 (18:18 +0800)
committerqydysky <qydysky@foxmail.com>
Tue, 9 Mar 2021 10:18:43 +0000 (18:18 +0800)
Reply/F.go
Send/Send.go

index a47d5f252796304fb4dbae33f8a7705a8e5d48af..6d7a6066e4d9627b40c5553390a2af560f416e92 100644 (file)
@@ -778,8 +778,10 @@ func Keep_medal_light() {
        flog.L(`T: `,`开始`)
 
        for _,v := range F.Get_list_in_room() {
-               if v.Is_lighted == 1 {continue}
-               if time.Now().Add(-time.Hour * time.Duration(24 * 7)).Unix() - int64(v.Last_wear_time) > 0 {continue}
+               if time.Now().Add(-time.Hour * time.Duration(24 * 5)).Unix() - int64(v.Last_wear_time) > 0 {continue}
+               if v.Is_lighted == 0 {continue}
+
+               //5天前有佩戴记录,且仍然点亮的(7天内点亮的),将会进行保持
                send.Danmu_s(sendStr,p.Map_2_Cookies_String(Cookie),v.Room_id)
                time.Sleep(time.Second)
        }
index 2d62e21e8cac41d9271eae2c75118ceae1f61618..e740c0e42f28161f11cb995e0bd3e3549e3d0705 100644 (file)
@@ -77,8 +77,7 @@ func Danmu_s(msg,Cookie string, roomid int) {
        }
 
        if res.Code != 0 {
-               l.L(`E: `, res.Code, res.Message)
+               l.L(`E: `, `产生错误:`,res.Code, res.Message)
        }
-       l.L(`E: `, res.Message)
 
 }
\ No newline at end of file