//功能开关
var AllF = map[string]bool{
+ `ShowRec`:true,//显示本次营收
"Gtk":false,//Gtk弹幕窗口
"Saveflv":true,//保存直播流(默认高清,有cookie默认蓝光)
"Ass":true,//Ass弹幕生成,由于时间对应关系,仅开启流保存时生效
}
//功能区
+//ShowRec 显示h营收
+func ShowRecf(){
+ if!IsOn("ShowRec") {return}
+ for {
+ p.Sys().Timeoutf(60)
+ p.Logf().New().Open("danmu.log").Base(1, "Rec").I("营收 ¥", c.Rec)
+ }
+}
+
//Gtk 弹幕Gtk窗口
func Gtkf(){
if!IsOn("Gtk") {return}
}
if price != nil {
sh = append(sh, "¥", int(price.(float64)) / 1000)
+ c.Rev += int(price.(float64)) / 1000
}
{//额外 ass
Assf(fmt.Sprintln(sh...))
}
if content != nil {
sh = append(sh, "节奏风暴", content, "¥ 100")
+ c.Rev += 100
}
{//额外
Assf(fmt.Sprintln(sh...))
if total_coin != nil {
allprice = int64(total_coin.(float64) / 1000)
sh = append(sh, "¥", allprice)
+ c.Rev += int(allprice)
}
if len(sh) == 0 {return}
}
if price != nil {
sh = append(sh, "¥", price, "\n")
+ c.Rev += int(price.(float64))
}
fmt.Println("====")
fmt.Println(sh...)