BroadcastType int `json:"broadcast_type"`
} `json:"live_room"`
} `json:"data"`
-}
\ No newline at end of file
+}
Status int `json:"status"`
Vip int `json:"vip"`
} `json:"data"`
-}
\ No newline at end of file
+}
Num500000 float64 `json:"500000"`
} `json:"gold_2_silver_bonus"`
} `json:"data"`
-}
\ No newline at end of file
+}
} `json:"data"`
Message string `json:"message"`
Msg string `json:"msg"`
-}
+}
HeartBeat数据分派
*/
-var Heart_map = map[string]func(replyF, int) {
- "heartbeat":replyF.heartbeat,//人气
+var Heart_map = map[string]func(replyF, int){
+ "heartbeat": replyF.heartbeat, //人气
}
//HeartBeat类型,将人气4位byte转为字符串,并送到上述map指定的方法
-func Heart(b []byte){
+func Heart(b []byte) {
s := int(F.Btoi32(b, 0))
- if F,ok := Heart_map["heartbeat"]; ok {
+ if F, ok := Heart_map["heartbeat"]; ok {
var f replyF
- F(f, s);
+ F(f, s)
}
-}
\ No newline at end of file
+}
}
var buf map[string]interface{}
json.Unmarshal(bb, &buf)
- for k, _ := range keep_key {
+ for k := range keep_key {
delete(keep_key, k)
}
for k, v := range buf {
if e == nil {
imgbuf.Lock()
if v, ok := c.C.K_v.LoadV(`gtk_内存头像数量`).(float64); ok && len(imgbuf.b) > int(v)+10 {
- for k, _ := range imgbuf.b {
+ for k := range imgbuf.b {
delete(imgbuf.b, k)
if len(imgbuf.b) <= int(v) {
break
package part
type ENTRY_EFFECT_MUST_RECEIVE struct {
- Cmd string `json:"cmd"`
+ Cmd string `json:"cmd"`
Data struct {
- Id int `json:"id"`
- Uid int `json:"uid"`
- Target_id int `json:"target_id"`
- Mock_effect int `json:"mock_effect"`
- Face string `json:"face"`
- Privilege_type int `json:"privilege_type"`
- Copy_writing string `json:"copy_writing"`
- Copy_color string `json:"copy_color"`
- Highlight_color string `json:"highlight_color"`
- Priority int `json:"priority"`
- Basemap_url string `json:"basemap_url"`
- Show_avatar int `json:"show_avatar"`
- Effective_time int `json:"effective_time"`
- Web_basemap_url string `json:"web_basemap_url"`
- Web_effective_time int `json:"web_effective_time"`
- Web_effect_close int `json:"web_effect_close"`
- Web_close_time int `json:"web_close_time"`
- Business int `json:"business"`
- Copy_writing_v2 string `json:"copy_writing_v2"`
- Icon_list []int `json:"icon_list"`
- Max_delay_time int `json:"max_delay_time"`
+ Id int `json:"id"`
+ Uid int `json:"uid"`
+ Target_id int `json:"target_id"`
+ Mock_effect int `json:"mock_effect"`
+ Face string `json:"face"`
+ Privilege_type int `json:"privilege_type"`
+ Copy_writing string `json:"copy_writing"`
+ Copy_color string `json:"copy_color"`
+ Highlight_color string `json:"highlight_color"`
+ Priority int `json:"priority"`
+ Basemap_url string `json:"basemap_url"`
+ Show_avatar int `json:"show_avatar"`
+ Effective_time int `json:"effective_time"`
+ Web_basemap_url string `json:"web_basemap_url"`
+ Web_effective_time int `json:"web_effective_time"`
+ Web_effect_close int `json:"web_effect_close"`
+ Web_close_time int `json:"web_close_time"`
+ Business int `json:"business"`
+ Copy_writing_v2 string `json:"copy_writing_v2"`
+ Icon_list []int `json:"icon_list"`
+ Max_delay_time int `json:"max_delay_time"`
} `json:"data"`
}
+
/*
{
"cmd": "ENTRY_EFFECT_MUST_RECEIVE",
"max_delay_time": 7
}
}
-*/
\ No newline at end of file
+*/
package part
type HOT_RANK_CHANGED struct {
- Cmd string `json:"cmd"`
+ Cmd string `json:"cmd"`
Data struct {
- Rank int `json:"rank"`
- Trend int `json:"trend"`
- Countdown int `json:"countdown"`
- Timestamp int `json:"timestamp"`
- Web_url string `json:"web_url"`
- Live_url string `json:"live_url"`
- Blink_url string `json:"blink_url"`
+ Rank int `json:"rank"`
+ Trend int `json:"trend"`
+ Countdown int `json:"countdown"`
+ Timestamp int `json:"timestamp"`
+ Web_url string `json:"web_url"`
+ Live_url string `json:"live_url"`
+ Blink_url string `json:"blink_url"`
Live_link_url string `json:"live_link_url"`
- Pc_link_url string `json:"pc_link_url"`
- Icon string `json:"icon"`
- Area_name string `json:"area_name"`
+ Pc_link_url string `json:"pc_link_url"`
+ Icon string `json:"icon"`
+ Area_name string `json:"area_name"`
} `json:"data"`
}
package part
-type HOT_RANK_SETTLEMENT struct{
- Cmd string `json:"cmd"`
- Data struct{
- Rank int `json:"rank"`
- Uname string `json:"uname"`
- Face string `json:"face"`
- Timestamp int `json:"timestamp"`
- Icon string `json:"icon"`
- Area_name string `json:"area_name"`
- Url string `json:"url"`
- Cache_key string `json:"cache_key"`
- Dm_msg string `json:"dm_msg"`
- } `json:"data"`
+type HOT_RANK_SETTLEMENT struct {
+ Cmd string `json:"cmd"`
+ Data struct {
+ Rank int `json:"rank"`
+ Uname string `json:"uname"`
+ Face string `json:"face"`
+ Timestamp int `json:"timestamp"`
+ Icon string `json:"icon"`
+ Area_name string `json:"area_name"`
+ Url string `json:"url"`
+ Cache_key string `json:"cache_key"`
+ Dm_msg string `json:"dm_msg"`
+ } `json:"data"`
}
package part
type LITTLE_MESSAGE_BOX struct {
- Cmd string `json:"cmd"`
+ Cmd string `json:"cmd"`
Data struct {
- From string `json:"from"`
- Platform struct{
+ From string `json:"from"`
+ Platform struct {
Android bool `json:"android"`
- Ios bool `json:"ios"`
- Web bool `json:"web"`
+ Ios bool `json:"ios"`
+ Web bool `json:"web"`
} `json:"platform"`
- Msg string `json:"msg"`
- Room_id int `json:"room_id"`
- Type int `json:"type"`
+ Msg string `json:"msg"`
+ Room_id int `json:"room_id"`
+ Type int `json:"type"`
} `json:"data"`
}
package part
type MESSAGEBOX_USER_MEDAL_CHANGE struct {
- Cmd string `json:"cmd"`
+ Cmd string `json:"cmd"`
Data struct {
- Type int `json:"type"`
- Uid int `json:"uid"`
- Up_uid int `json:"up_uid"`
- Medal_name string `json:"medal_name"`
- Medal_level int `json:"medal_level"`
- Medal_color_start int `json:"medal_color_start"`
- Medal_color_end int `json:"medal_color_end"`
- Medal_color_border int `json:"medal_color_border"`
- Guard_level int `json:"guard_level"`
- Is_lighted int `json:"is_lighted"`
- Unlock int `json:"unlock"`
- Unlock_level int `json:"unlock_level"`
- Multi_unlock_level string `json:"multi_unlock_level"`
- Upper_bound_content string `json:"upper_bound_content"`
+ Type int `json:"type"`
+ Uid int `json:"uid"`
+ Up_uid int `json:"up_uid"`
+ Medal_name string `json:"medal_name"`
+ Medal_level int `json:"medal_level"`
+ Medal_color_start int `json:"medal_color_start"`
+ Medal_color_end int `json:"medal_color_end"`
+ Medal_color_border int `json:"medal_color_border"`
+ Guard_level int `json:"guard_level"`
+ Is_lighted int `json:"is_lighted"`
+ Unlock int `json:"unlock"`
+ Unlock_level int `json:"unlock_level"`
+ Multi_unlock_level string `json:"multi_unlock_level"`
+ Upper_bound_content string `json:"upper_bound_content"`
} `json:"data"`
-}
\ No newline at end of file
+}
EndWinTask interface{} `json:"end_win_task"`
} `json:"data"`
Roomid int `json:"roomid"`
-}
\ No newline at end of file
+}
BestUname string `json:"best_uname"`
} `json:"match_info"`
} `json:"data"`
-}
\ No newline at end of file
+}
StarLightMsg string `json:"star_light_msg"`
} `json:"data"`
Roomid string `json:"roomid"`
-}
\ No newline at end of file
+}
package part
-
+
type SEND_GIFT struct {
Cmd string `json:"cmd"`
Data struct {
UID int `json:"uid"`
Uname string `json:"uname"`
} `json:"combo_send"`
- ComboStayTime int `json:"combo_stay_time"`
- ComboTotalCoin int `json:"combo_total_coin"`
- CritProb int `json:"crit_prob"`
- Demarcation int `json:"demarcation"`
- Dmscore int `json:"dmscore"`
- Draw int `json:"draw"`
- Effect int `json:"effect"`
- EffectBlock int `json:"effect_block"`
- Face string `json:"face"`
- Giftid int `json:"giftId"`
- Giftname string `json:"giftName"`
- Gifttype int `json:"giftType"`
- Gold int `json:"gold"`
- GuardLevel int `json:"guard_level"`
- IsFirst bool `json:"is_first"`
- IsSpecialBatch int `json:"is_special_batch"`
- Magnification float64 `json:"magnification"`
+ ComboStayTime int `json:"combo_stay_time"`
+ ComboTotalCoin int `json:"combo_total_coin"`
+ CritProb int `json:"crit_prob"`
+ Demarcation int `json:"demarcation"`
+ Dmscore int `json:"dmscore"`
+ Draw int `json:"draw"`
+ Effect int `json:"effect"`
+ EffectBlock int `json:"effect_block"`
+ Face string `json:"face"`
+ Giftid int `json:"giftId"`
+ Giftname string `json:"giftName"`
+ Gifttype int `json:"giftType"`
+ Gold int `json:"gold"`
+ GuardLevel int `json:"guard_level"`
+ IsFirst bool `json:"is_first"`
+ IsSpecialBatch int `json:"is_special_batch"`
+ Magnification float64 `json:"magnification"`
MedalInfo struct {
AnchorRoomid int `json:"anchor_roomid"`
AnchorUname string `json:"anchor_uname"`
少废话","special":"","target_id":14110780},"name_color":"","num":1,"original_gift_name":"","price":100,"rcost":3892073142,"remain":0,"rnd":"
1332407012","send_master":null,"silver":0,"super":0,"super_batch_gift_num":1,"super_gift_num":1,"svga_block":0,"tag_image":"","tid":"1623602
183121500002","timestamp":1623602183,"top_list":null,"total_coin":100,"uid":333010355,"uname":"小尕子_"}}
-*/
\ No newline at end of file
+*/
Data struct {
RoomIDList []int `json:"room_id_list"`
} `json:"data"`
-}
-//{"cmd":"STOP_LIVE_ROOM_LIST","data":{"room_id_list":[22301508,14091554,21782859]}}
\ No newline at end of file
+}
+
+//{"cmd":"STOP_LIVE_ROOM_LIST","data":{"room_id_list":[22301508,14091554,21782859]}}
e3ef1b22f3df61a.png","guard_level":1,"user_level":43,"level_color":"#ff86b2","is_vip":0,"is_svip":0,"is_main_vip":0,"title":"0","manager":0}
,"time":7200,"start_time":1623612710,"end_time":1623619910,"gift":{"num":1,"gift_id":12000,"gift_name":"\u9192\u76ee\u7559\u8a00"}},"roomid"
:"47867"}
-*/
\ No newline at end of file
+*/
Username string `json:"username"`
} `json:"data"`
}
+
/*
{"cmd":"USER_TOAST_MSG","data":{"anchor_show":true,"color":"#00D1F1","dmscore":90,"end_time":1623612866,"guard_level":3,"is_show":0,"num":1,
"op_type":3,"payflow_id":"2106140334131392145517282","price":138000,"role_name":"舰长","start_time":1623612866,"svga_block":0,"target_guard_
count":820,"toast_msg":"\u003c%大桶麦丽素%\u003e 自动续费了舰长","uid":40144551,"unit":"月","user_show":true,"username":"大桶麦丽素"}}
-*/
\ No newline at end of file
+*/
} `json:"data"`
Roomid int `json:"roomid"`
}
-//{"cmd":"VOICE_JOIN_LIST","data":{"room_id":1017,"category":1,"apply_count":62,"red_point":1,"refresh":0},"roomid":1017}
\ No newline at end of file
+
+//{"cmd":"VOICE_JOIN_LIST","data":{"room_id":1017,"category":1,"apply_count":62,"red_point":1,"refresh":0},"roomid":1017}
} `json:"data"`
Roomid int `json:"roomid"`
}
-//{"cmd":"VOICE_JOIN_ROOM_COUNT_INFO","data":{"room_id":1017,"root_status":1,"room_status":1,"apply_count":62,"notify_count":0,"red_point":0},"roomid":1017}
\ No newline at end of file
+
+//{"cmd":"VOICE_JOIN_ROOM_COUNT_INFO","data":{"room_id":1017,"root_status":1,"room_status":1,"apply_count":62,"notify_count":0,"red_point":0},"roomid":1017}
} `json:"data"`
Roomid int `json:"roomid"`
}
-//{"cmd":"VOICE_JOIN_STATUS","data":{"room_id":1017,"status":0,"channel":"","channel_type":"voice","uid":0,"user_name":"","head_pic":"","guard":0,"start_at":0,"current_time":1621702198,"web_share_link":"https:\/\/live.bilibili.com\/h5\/1017"},"roomid":1017}
\ No newline at end of file
+
+//{"cmd":"VOICE_JOIN_STATUS","data":{"room_id":1017,"status":0,"channel":"","channel_type":"voice","uid":0,"user_name":"","head_pic":"","guard":0,"start_at":0,"current_time":1621702198,"web_share_link":"https:\/\/live.bilibili.com\/h5\/1017"},"roomid":1017}
LotteryID string `json:"lottery_id"`
} `json:"data"`
}
+
/*
{
"cmd": "VTR_GIFT_LOTTERY",
"toast_msg": ""
}
}
-*/
\ No newline at end of file
+*/