} else {
fmt.Println("登陆->输入' login'回车")
}
+ fmt.Println("重载弹幕->输入' reload'回车")
fmt.Println("搜索主播->输入' search关键词'回车")
fmt.Println("房间信息->输入' room'回车")
fmt.Println("开始结束录制->输入' rec'回车")
continue
}
+ //重载弹幕
+ if strings.Contains(inputs, ` reload`) {
+ c.Danmu_Main_mq.Push_tag(`flash_room`,nil)
+ continue
+ }
//当前直播间信息
if strings.Contains(inputs, ` room`) {
fmt.Print("\n")
p "github.com/qydysky/part"
mq "github.com/qydysky/part/msgq"
- limit "github.com/qydysky/part/limit"
F "github.com/qydysky/bili_danmu/F"
ws_msg "github.com/qydysky/bili_danmu/Reply/ws_msg"
send "github.com/qydysky/bili_danmu/Send"
}
//Msg-弹幕处理
-var flash_limit = limit.New(1, 60000, -1)//-1 马上超时
func (replyF) danmu(s string) {
var j struct {
Cmd string `json:"cmd"`
msg := infob[1].(string)
auth := infob[2].([]interface{})[1]
uid := strconv.Itoa(int(infob[2].([]interface{})[0].(float64)))
- timeStramp := int64(infob[0].([]interface{})[4].(float64))
- if t := p.Sys().GetMTime() - timeStramp; t > 60*1000 {
- if flash_limit.TO() {return}
- msglog.L(`W: `, `重进,弹幕时间戳偏离`, t, `ms`)
- c.Danmu_Main_mq.Push_tag(`flash_room`,nil)
- }
+ // timeStramp := int64(infob[0].([]interface{})[4].(float64))
msglog := msglog.Log_show_control(false)