关注消息

This commit is contained in:
Jerry Yan 2020-01-30 21:48:23 +08:00
parent 4ef018a34b
commit 0add87dfa8
7 changed files with 1494 additions and 48 deletions

View File

@ -48,6 +48,12 @@ message GiftMessage {
// //
optional bool isFinished = 9 [ default = false ]; optional bool isFinished = 9 [ default = false ];
} }
message SocialMessage {
required CommonInfo commonInfo = 1;
required User user = 2;
required int32 int4 = 4;
required int32 fansCount = 6;
}
// //
message Style { message Style {
optional string color = 1; optional string color = 1;

BIN
Demo/a.txt Normal file

Binary file not shown.

997
Demo/guanzhu.txt Normal file
View File

@ -0,0 +1,997 @@
1 {
1: "WebcastGiftMessage"
2 {
1 {
1: "WebcastGiftMessage"
2: 6787717978657360643
3: 6787691314156276488
4: 1580388803763
6: 1
8 {
1: "webcast_xigua_gift_message"
2: "{0:user} \351\200\201\347\273\231\344\270\273\346\222\255{2:string}\344\270\252{1:gift}"
3 {
1: "#ffff9d5c"
4: 400
}
4 {
1: 11
2 {
1: "#ffffd600"
4: 400
}
21 {
1 {
1: 105855829073
3: "\345\260\217\350\234\234\346\237\240\346\252\254\350\214\266"
9 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
10 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
11 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
15: 1
21 {
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
2: "webcast/xigua_paygrade_level_5.png"
3: 16
4: 30
6: 1
7: "sslocal://webcast_webview?url=https%3A%2F%2Fwebcast.ixigua.com%2Ffalcon%2Fwebcast_xigua%2Fpage%2FhonorLevel%2Findex.html&type=popup&gravity=bottom&height=400&radius=8&__live_platform__=webcast"
}
21 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
2: "webcast/xigua_fansclub_medal_14.png"
6: 7
8 {
1: "\346\260\270\346\201\222"
2: "#FFFFFF"
3: 14
}
}
22 {
1: 2
2: 1
}
23 {
1: 62
6: 5
10: 51
11: 99
13: "\350\267\235\347\246\2736\347\272\247\350\277\230\345\267\25638\351\222\273\347\237\263"
19 {
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
2: "webcast/xigua_paygrade_level_5.png"
3: 16
4: 30
6: 1
7: "sslocal://webcast_webview?url=https%3A%2F%2Fwebcast.ixigua.com%2Ffalcon%2Fwebcast_xigua%2Fpage%2FhonorLevel%2Findex.html&type=popup&gravity=bottom&height=400&radius=8&__live_platform__=webcast"
}
21: 38
}
24 {
1 {
1: "\346\260\270\346\201\222"
2: 14
3: 1
4 {
1 {
1: 2
2 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
2: "webcast/xigua_fansclub_medal_14.png"
3: 48
4: 150
}
}
2: "\346\260\270\346\201\222"
}
}
}
32: ""
34: 62
37: 1
38: "0"
44: ""
46: "MS4wLjABAAAAd4R7mC-c8FCTjCqTIhJ0CoydF_FMweyatdS66xud0hY"
48: ""
1028: "105855829073"
}
2: 1
}
}
4 {
1: 12
2 {
1: "#ffff9d5c"
4: 400
}
22 {
1: 10001
2 {
1: "live_gift_10001"
2: "\350\245\277\347\223\234"
}
}
}
4 {
1: 1
2 {
1: "#ffff9d5c"
4: 400
}
11: "18"
}
}
}
2: 10001
3: 4997044
4: 1
5: 18
6: 18
7 {
1: 105855829073
3: "\345\260\217\350\234\234\346\237\240\346\252\254\350\214\266"
9 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
10 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
11 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
15: 1
21 {
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
2: "webcast/xigua_paygrade_level_5.png"
3: 16
4: 30
6: 1
7: "sslocal://webcast_webview?url=https%3A%2F%2Fwebcast.ixigua.com%2Ffalcon%2Fwebcast_xigua%2Fpage%2FhonorLevel%2Findex.html&type=popup&gravity=bottom&height=400&radius=8&__live_platform__=webcast"
}
21 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
2: "webcast/xigua_fansclub_medal_14.png"
6: 7
8 {
1: "\346\260\270\346\201\222"
2: "#FFFFFF"
3: 14
}
}
22 {
1: 2
2: 1
}
23 {
1: 62
6: 5
10: 51
11: 99
13: "\350\267\235\347\246\2736\347\272\247\350\277\230\345\267\25638\351\222\273\347\237\263"
19 {
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
2: "webcast/xigua_paygrade_level_5.png"
3: 16
4: 30
6: 1
7: "sslocal://webcast_webview?url=https%3A%2F%2Fwebcast.ixigua.com%2Ffalcon%2Fwebcast_xigua%2Fpage%2FhonorLevel%2Findex.html&type=popup&gravity=bottom&height=400&radius=8&__live_platform__=webcast"
}
21: 38
}
24 {
1 {
1: "\346\260\270\346\201\222"
2: 14
3: 1
4 {
1 {
1: 2
2 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
2: "webcast/xigua_fansclub_medal_14.png"
3: 48
4: 150
}
}
2: "\346\260\270\346\201\222"
}
}
}
32: ""
34: 62
37: 1
38: "0"
44: ""
46: "MS4wLjABAAAAd4R7mC-c8FCTjCqTIhJ0CoydF_FMweyatdS66xud0hY"
48: ""
1028: "105855829073"
}
11: 1580388797
12: 7453182
}
}
1 {
1: "WebcastSocialMessage"
2 {
1 {
1: "WebcastSocialMessage"
2: 6787718225754295054
3: 6787691314156276488
4: 1580388803802
6: 1
}
2 {
1: 111036833136
3: "\347\224\250\346\210\2679627521617519"
9 {
1: "http://sf1-ttcdn-tos.pstatp.com/img/mosaic-legacy/3796/2975850990~120x256.image"
}
22 {
1: 1
2: 19
}
23 {
19: ""
}
24 {
1 {
4 {
1 {
1: 0
2: ""
}
}
}
}
32: ""
38: "0"
46: "MS4wLjABAAAApZHNJdD-IbL7CES631w87jSXrSyXZfqETb-HYnYx6Ug"
54: 3
}
4: 1
6: 169079
}
}
1 {
1: "WebcastGiftMessage"
2 {
1 {
1: "WebcastGiftMessage"
2: 6787718023417531148
3: 6787691314156276488
4: 1580388804048
6: 1
8 {
1: "webcast_xigua_gift_message"
2: "{0:user} \351\200\201\347\273\231\344\270\273\346\222\255{2:string}\344\270\252{1:gift}"
3 {
1: "#ffff9d5c"
4: 400
}
4 {
1: 11
2 {
1: "#ffffd600"
4: 400
}
21 {
1 {
1: 105855829073
3: "\345\260\217\350\234\234\346\237\240\346\252\254\350\214\266"
9 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
10 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
11 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
15: 1
21 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
2: "webcast/xigua_paygrade_level_5.png"
3: 16
4: 30
6: 1
7: "sslocal://webcast_webview?url=https%3A%2F%2Fwebcast.ixigua.com%2Ffalcon%2Fwebcast_xigua%2Fpage%2FhonorLevel%2Findex.html&type=popup&gravity=bottom&height=400&radius=8&__live_platform__=webcast"
}
21 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
2: "webcast/xigua_fansclub_medal_14.png"
6: 7
8 {
1: "\346\260\270\346\201\222"
2: "#FFFFFF"
3: 14
}
}
22 {
1: 2
2: 1
}
23 {
1: 62
6: 5
10: 51
11: 99
13: "\350\267\235\347\246\2736\347\272\247\350\277\230\345\267\25638\351\222\273\347\237\263"
19 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
2: "webcast/xigua_paygrade_level_5.png"
3: 16
4: 30
6: 1
7: "sslocal://webcast_webview?url=https%3A%2F%2Fwebcast.ixigua.com%2Ffalcon%2Fwebcast_xigua%2Fpage%2FhonorLevel%2Findex.html&type=popup&gravity=bottom&height=400&radius=8&__live_platform__=webcast"
}
21: 38
}
24 {
1 {
1: "\346\260\270\346\201\222"
2: 14
3: 1
4 {
1 {
1: 2
2 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
2: "webcast/xigua_fansclub_medal_14.png"
3: 48
4: 150
}
}
2: "\346\260\270\346\201\222"
}
}
}
32: ""
34: 62
37: 1
38: "0"
44: ""
46: "MS4wLjABAAAAd4R7mC-c8FCTjCqTIhJ0CoydF_FMweyatdS66xud0hY"
48: ""
1028: "105855829073"
}
2: 1
}
}
4 {
1: 12
2 {
1: "#ffff9d5c"
4: 400
}
22 {
1: 10001
2 {
1: "live_gift_10001"
2: "\350\245\277\347\223\234"
}
}
}
4 {
1: 1
2 {
1: "#ffff9d5c"
4: 400
}
11: "19"
}
}
}
2: 10001
3: 4997044
4: 1
5: 19
6: 19
7 {
1: 105855829073
3: "\345\260\217\350\234\234\346\237\240\346\252\254\350\214\266"
9 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
10 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
11 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
15: 1
21 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
2: "webcast/xigua_paygrade_level_5.png"
3: 16
4: 30
6: 1
7: "sslocal://webcast_webview?url=https%3A%2F%2Fwebcast.ixigua.com%2Ffalcon%2Fwebcast_xigua%2Fpage%2FhonorLevel%2Findex.html&type=popup&gravity=bottom&height=400&radius=8&__live_platform__=webcast"
}
21 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
2: "webcast/xigua_fansclub_medal_14.png"
6: 7
8 {
1: "\346\260\270\346\201\222"
2: "#FFFFFF"
3: 14
}
}
22 {
1: 2
2: 1
}
23 {
1: 62
6: 5
10: 51
11: 99
13: "\350\267\235\347\246\2736\347\272\247\350\277\230\345\267\25638\351\222\273\347\237\263"
19 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
2: "webcast/xigua_paygrade_level_5.png"
3: 16
4: 30
6: 1
7: "sslocal://webcast_webview?url=https%3A%2F%2Fwebcast.ixigua.com%2Ffalcon%2Fwebcast_xigua%2Fpage%2FhonorLevel%2Findex.html&type=popup&gravity=bottom&height=400&radius=8&__live_platform__=webcast"
}
21: 38
}
24 {
1 {
1: "\346\260\270\346\201\222"
2: 14
3: 1
4 {
1 {
1: 2
2 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
2: "webcast/xigua_fansclub_medal_14.png"
3: 48
4: 150
}
}
2: "\346\260\270\346\201\222"
}
}
}
32: ""
34: 62
37: 1
38: "0"
44: ""
46: "MS4wLjABAAAAd4R7mC-c8FCTjCqTIhJ0CoydF_FMweyatdS66xud0hY"
48: ""
1028: "105855829073"
}
11: 1580388797
12: 7453182
}
}
1 {
1: "WebcastRoomUserSeqMessage"
2 {
1 {
1: "WebcastRoomUserSeqMessage"
2: 6787718227533761294
3: 6787691314156276488
4: 1580388804226
}
2 {
1: 9999
2 {
1: 4719119436
9 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/6368/3857576856~120x256.image"
}
23: ""
54: 3
}
3: 1
}
2 {
1: 9998
2 {
1: 60374191432
2: 259345
9 {
1: "http://sf1-ttcdn-tos.pstatp.com/img/mosaic-legacy/da99000fd41edfb7daa6~120x256.image"
}
23: ""
54: 3
}
3: 2
}
2 {
1: 1699
2 {
1: 3544417251634206
9 {
1: "http://sf1-ttcdn-tos.pstatp.com/img/tos-cn-i-0022/830d7e15f45946aa9b757a500cc6dcbe~120x256.image"
}
23: ""
54: 3
}
3: 3
}
2 {
1: 1099
2 {
1: 4261353838881501
9 {
1: "http://sf3-ttcdn-tos.pstatp.com/img/tos-cn-i-0022/c24df9dffd6d45929c227c5da22fe406~120x256.image"
}
23: ""
54: 3
}
3: 4
}
2 {
1: 520
2 {
1: 2933125236921479
9 {
1: "http://sf1-ttcdn-tos.pstatp.com/img/tos-cn-i-0022/2e1c9d64f34a4a3e8a326fe5394659fd~120x256.image"
}
23: ""
54: 3
}
3: 5
}
2 {
1: 300
2 {
1: 3927095572170669
9 {
1: "http://p1-xg.bytecdn.cn/thumb/daaa001914e0039994ae"
2: "daaa001914e0039994ae"
}
23: ""
54: 3
}
3: 6
}
2 {
1: 120
2 {
1: 153552343543981
9 {
1: "http://sf3-ttcdn-tos.pstatp.com/img/mosaic-legacy/3795/3033762272~120x256.image"
}
23: ""
54: 3
}
3: 7
}
2 {
1: 99
2 {
1: 1732418933370259
9 {
1: "http://sf1-ttcdn-tos.pstatp.com/img/tos-cn-i-0022/5941f17833524bfa9316a648c39c990f~120x256.image"
}
23: ""
54: 3
}
3: 8
}
2 {
1: 99
2 {
1: 104372509299
9 {
1: "http://p1-xg.bytecdn.cn/thumb/da920004cd041ec12061"
2: "da920004cd041ec12061"
}
23: ""
54: 3
}
3: 9
}
2 {
1: 60
2 {
1: 60518722952
9 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/tos-cn-i-0022/0f9162a614bd474f9fbda57614a0c9f1~120x256.image"
}
23: ""
54: 3
}
3: 10
}
2 {
1: 30
2 {
1: 1261881879167767
9 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3795/3044413937~120x256.image"
}
23: ""
54: 3
}
3: 11
}
2 {
1: 22
2 {
1: 1173933315333736
9 {
1: "http://sf1-ttcdn-tos.pstatp.com/img/tos-cn-i-0022/a181c0707ff540aba16f43af049a3791~120x256.image"
}
23: ""
54: 3
}
3: 12
}
2 {
1: 20
2 {
1: 3949047076102647
9 {
1: "http://sf3-ttcdn-tos.pstatp.com/img/tos-cn-i-0022/187afa353816402cb827e9fae386ca2a~120x256.image"
}
23: ""
54: 3
}
3: 13
}
2 {
1: 2
2 {
1: 65771610619
9 {
1: "http://sf1-ttcdn-tos.pstatp.com/img/mosaic-legacy/3793/3131589739~120x256.image"
}
23: ""
54: 3
}
3: 14
}
2 {
2 {
1: 99827340042
9 {
1: "http://p1-xg.bytecdn.cn/thumb/da74000192436fc5db6e"
2: "da74000192436fc5db6e"
}
23: ""
54: 3
}
3: 15
}
2 {
2 {
1: 99482502045
9 {
1: "http://sf3-ttcdn-tos.pstatp.com/img/mosaic-legacy/3793/3114521287~120x256.image"
}
23: ""
54: 3
}
3: 16
}
2 {
2 {
1: 98103952579
9 {
1: "http://sf1-ttcdn-tos.pstatp.com/img/mosaic-legacy/3793/3131589739~120x256.image"
}
23: ""
54: 3
}
3: 17
}
2 {
2 {
1: 9746464842
9 {
1: "http://sf3-ttcdn-tos.pstatp.com/img/tos-cn-i-0022/6ad34237256e4471b16810eb098224c0~120x256.image"
}
23: ""
54: 3
}
3: 18
}
2 {
2 {
1: 97221408269
9 {
1: "http://sf1-ttcdn-tos.pstatp.com/img/mosaic-legacy/3793/3131589739~120x256.image"
}
23: ""
54: 3
}
3: 19
}
2 {
2 {
1: 971618215795604
9 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3797/2889309425~120x256.image"
}
23: ""
54: 3
}
3: 20
}
3: 461
4: "15\344\270\207\344\272\272\346\260\224"
6: 158310
}
}
1 {
1: "WebcastGiftMessage"
2 {
1 {
1: "WebcastGiftMessage"
2: 6787717971278351115
3: 6787691314156276488
4: 1580388804414
6: 1
8 {
1: "webcast_xigua_gift_message"
2: "{0:user} \351\200\201\347\273\231\344\270\273\346\222\255{2:string}\344\270\252{1:gift}"
3 {
1: "#ffff9d5c"
4: 400
}
4 {
1: 11
2 {
1: "#ffffd600"
4: 400
}
21 {
1 {
1: 105855829073
3: "\345\260\217\350\234\234\346\237\240\346\252\254\350\214\266"
9 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
10 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
11 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
15: 1
21 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
2: "webcast/xigua_paygrade_level_5.png"
3: 16
4: 30
6: 1
7: "sslocal://webcast_webview?url=https%3A%2F%2Fwebcast.ixigua.com%2Ffalcon%2Fwebcast_xigua%2Fpage%2FhonorLevel%2Findex.html&type=popup&gravity=bottom&height=400&radius=8&__live_platform__=webcast"
}
21 {
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
2: "webcast/xigua_fansclub_medal_14.png"
6: 7
8 {
1: "\346\260\270\346\201\222"
2: "#FFFFFF"
3: 14
}
}
22 {
1: 2
2: 1
}
23 {
1: 62
6: 5
10: 51
11: 99
13: "\350\267\235\347\246\2736\347\272\247\350\277\230\345\267\25638\351\222\273\347\237\263"
19 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
2: "webcast/xigua_paygrade_level_5.png"
3: 16
4: 30
6: 1
7: "sslocal://webcast_webview?url=https%3A%2F%2Fwebcast.ixigua.com%2Ffalcon%2Fwebcast_xigua%2Fpage%2FhonorLevel%2Findex.html&type=popup&gravity=bottom&height=400&radius=8&__live_platform__=webcast"
}
21: 38
}
24 {
1 {
1: "\346\260\270\346\201\222"
2: 14
3: 1
4 {
1 {
1: 2
2 {
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
2: "webcast/xigua_fansclub_medal_14.png"
3: 48
4: 150
}
}
2: "\346\260\270\346\201\222"
}
}
}
32: ""
34: 62
37: 1
38: "0"
44: ""
46: "MS4wLjABAAAAd4R7mC-c8FCTjCqTIhJ0CoydF_FMweyatdS66xud0hY"
48: ""
1028: "105855829073"
}
2: 1
}
}
4 {
1: 12
2 {
1: "#ffff9d5c"
4: 400
}
22 {
1: 10001
2 {
1: "live_gift_10001"
2: "\350\245\277\347\223\234"
}
}
}
4 {
1: 1
2 {
1: "#ffff9d5c"
4: 400
}
11: "20"
}
}
}
2: 10001
3: 4997044
4: 1
5: 20
6: 20
7 {
1: 105855829073
3: "\345\260\217\350\234\234\346\237\240\346\252\254\350\214\266"
9 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
10 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
11 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3791/5070639578~120x256.image"
}
15: 1
21 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
2: "webcast/xigua_paygrade_level_5.png"
3: 16
4: 30
6: 1
7: "sslocal://webcast_webview?url=https%3A%2F%2Fwebcast.ixigua.com%2Ffalcon%2Fwebcast_xigua%2Fpage%2FhonorLevel%2Findex.html&type=popup&gravity=bottom&height=400&radius=8&__live_platform__=webcast"
}
21 {
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
2: "webcast/xigua_fansclub_medal_14.png"
6: 7
8 {
1: "\346\260\270\346\201\222"
2: "#FFFFFF"
3: 14
}
}
22 {
1: 2
2: 1
}
23 {
1: 62
6: 5
10: 51
11: 99
13: "\350\267\235\347\246\2736\347\272\247\350\277\230\345\267\25638\351\222\273\347\237\263"
19 {
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_5.png~tplv-obj.png"
2: "webcast/xigua_paygrade_level_5.png"
3: 16
4: 30
6: 1
7: "sslocal://webcast_webview?url=https%3A%2F%2Fwebcast.ixigua.com%2Ffalcon%2Fwebcast_xigua%2Fpage%2FhonorLevel%2Findex.html&type=popup&gravity=bottom&height=400&radius=8&__live_platform__=webcast"
}
21: 38
}
24 {
1 {
1: "\346\260\270\346\201\222"
2: 14
3: 1
4 {
1 {
1: 2
2 {
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_14.png~tplv-obj.image"
2: "webcast/xigua_fansclub_medal_14.png"
3: 48
4: 150
}
}
2: "\346\260\270\346\201\222"
}
}
}
32: ""
34: 62
37: 1
38: "0"
44: ""
46: "MS4wLjABAAAAd4R7mC-c8FCTjCqTIhJ0CoydF_FMweyatdS66xud0hY"
48: ""
1028: "105855829073"
}
11: 1580388797
12: 7453184
}
}
2: "6787717971278351115_1580388804554_6787718002764073739_1"
3: 1000
4: 1580388804554
5: "fetch_time:1580388804554|start_time:1580388804048|ack_ids:6787718023417531148_1b2|fetch_id:6787718004823608078|flag:1|seq:141"

165
Demo/jingyan.txt Normal file
View File

@ -0,0 +1,165 @@
1 {
1: "WebcastMemberMessage"
2 {
1 {
1: "WebcastMemberMessage"
2: 6787727734057011981
3: 6787691314156276488
6: 1
8 {
1: "member_silence_toast_3"
2: "{0:user} \350\242\253\347\256\241\347\220\206\345\221\230 {1:user} \347\246\201\350\250\200\344\272\206"
3 {
1: "#de000000"
4: 400
}
4 {
1: 11
2 {
1: "#61000000"
4: 400
}
21 {
1 {
1: 53536270159
3: "\350\243\244\350\243\206\351\207\214\347\232\204\345\244\247\345\256\235\345\211\221"
38: "0"
46: "MS4wLjABAAAAtH9p-LupXO1oQVJtlefmpryPoXqWzKs3_Nad9BlAREA"
}
}
}
4 {
1: 11
2 {
1: "#61000000"
4: 400
}
21 {
1 {
1: 2721997823950523
3: "\350\257\267\345\217\253\346\210\221\347\226\257\345\255\220\345\205\255"
38: "0"
46: "MS4wLjABAAAA1KKMtPQlRg_wecgX0G2Wl-ZIcWe-Yos95-IBwF1AzhSYzL5-zXCa4lciHj2HZho5"
}
}
}
}
}
2 {
1: 53536270159
3: "\350\243\244\350\243\206\351\207\214\347\232\204\345\244\247\345\256\235\345\211\221"
4: 1
9 {
1: "http://p3-xg.bytecdn.cn/thumb/1bf40000bd6dc5335b2d"
2: "1bf40000bd6dc5335b2d"
}
21 {
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_9.png~tplv-obj.png"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_9.png~tplv-obj.png"
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_9.png~tplv-obj.png"
2: "webcast/xigua_paygrade_level_9.png"
3: 16
4: 30
6: 1
7: "sslocal://webcast_webview?url=https%3A%2F%2Fwebcast.ixigua.com%2Ffalcon%2Fwebcast_xigua%2Fpage%2FhonorLevel%2Findex.html&type=popup&gravity=bottom&height=400&radius=8&__live_platform__=webcast"
}
21 {
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_7.png~tplv-obj.image"
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_7.png~tplv-obj.image"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_7.png~tplv-obj.image"
2: "webcast/xigua_fansclub_medal_7.png"
6: 7
8 {
1: "\346\260\270\346\201\222"
2: "#FFFFFF"
3: 7
}
}
22 {
1: 1
2: 17
}
23 {
6: 9
19 {
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_9.png~tplv-obj.png"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_9.png~tplv-obj.png"
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_paygrade_level_9.png~tplv-obj.png"
2: "webcast/xigua_paygrade_level_9.png"
3: 16
4: 30
6: 1
7: "sslocal://webcast_webview?url=https%3A%2F%2Fwebcast.ixigua.com%2Ffalcon%2Fwebcast_xigua%2Fpage%2FhonorLevel%2Findex.html&type=popup&gravity=bottom&height=400&radius=8&__live_platform__=webcast"
}
}
24 {
1 {
1: "\346\260\270\346\201\222"
2: 7
3: 1
4 {
1 {
1: 2
2 {
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_7.png~tplv-obj.image"
1: "http://p3-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_7.png~tplv-obj.image"
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/xigua_fansclub_medal_7.png~tplv-obj.image"
2: "webcast/xigua_fansclub_medal_7.png"
3: 48
4: 150
}
}
2: "\346\260\270\346\201\222"
}
}
}
32 {
1: 1
}
38: "0"
46: "MS4wLjABAAAAtH9p-LupXO1oQVJtlefmpryPoXqWzKs3_Nad9BlAREA"
50 {
1 {
3: 1008
4: 1125
}
3 {
3: 105
4: 111
7: "sslocal://webcast_webview?url=https%3A%2F%2Fwebcast.ixigua.com%2Ffalcon%2Fwebcast_xigua%2Fpage%2Fnoble%2Fnoble_privilege_intro%2Findex.html%3Fforbid_right_back%3D1&type=fullscreen&hide_nav_bar=1&status_bar_color=white&status_bar_bg_color=%2300000000&noble_intercept=1&__live_platform__=webcast"
}
4: "\346\231\256\351\200\232\347\224\250\346\210\267"
6 {
3: 366
4: 615
}
7 {
3: 60
4: 108
}
8 {
1: "http://p6-webcast-xgcdn.byteimg.com/img/webcast/noble_boarder.png~tplv-obj.image"
1: "http://p9-webcast-xgcdn.byteimg.com/img/webcast/noble_boarder.png~tplv-obj.image"
1: "http://p1-webcast-xgcdn.byteimg.com/img/webcast/noble_boarder.png~tplv-obj.image"
2: "webcast/noble_boarder.png"
3: 64
4: 64
}
}
54: 3
}
3: 555
4 {
1: 2721997823950523
3: "\350\257\267\345\217\253\346\210\221\347\226\257\345\255\220\345\205\255"
38: "0"
46: "MS4wLjABAAAA1KKMtPQlRg_wecgX0G2Wl-ZIcWe-Yos95-IBwF1AzhSYzL5-zXCa4lciHj2HZho5"
}
10: 9
14: "16\344\270\207\344\272\272\346\260\224"
}
}
2: "6787727734057011981_1580391018357_6787727537927867150_1"
3: 1000
4: 1580391018357
5: "fetch_time:1580391018357|start_time:1580391017508|ack_ids:6787727734057011981_1296|fetch_id:6787727723432626957|flag:1|seq:126"

234
Demo/resulta.txt Normal file
View File

@ -0,0 +1,234 @@
1 {
1: "WebcastRoomUserSeqMessage"
2 {
1 {
1: "WebcastRoomUserSeqMessage"
2: 6776963484661500684
3: 6776943780420389640
4: 1577884770601
}
2 {
1: 132
2 {
1: 3962279791967276
9 {
1: "http://sf3-ttcdn-tos.pstatp.com/img/tos-cn-i-0022/278ac6165ba34b7aa371e1df5ea337b3~120x256.image"
}
23: ""
}
3: 1
}
2 {
1: 66
2 {
1: 2933125236921479
9 {
1: "http://sf1-ttcdn-tos.pstatp.com/img/tos-cn-i-0022/2e1c9d64f34a4a3e8a326fe5394659fd~120x256.image"
}
23: ""
}
3: 2
}
2 {
1: 45
2 {
1: 50230797308
9 {
1: "http://p9-xg.bytecdn.cn/thumb/dac400045e7008dbd42d"
2: "dac400045e7008dbd42d"
}
23: ""
}
3: 3
}
2 {
1: 5
2 {
1: 9746464842
9 {
1: "http://sf3-ttcdn-tos.pstatp.com/img/tos-cn-i-0022/6ad34237256e4471b16810eb098224c0~120x256.image"
}
23: ""
}
3: 4
}
2 {
1: 5
2 {
1: 111552853752
9 {
1: "http://sf3-ttcdn-tos.pstatp.com/img/mosaic-legacy/3792/5112637127~120x256.image"
}
23: ""
}
3: 5
}
2 {
1: 3
2 {
1: 16665341581
9 {
1: "http://p3-xg.bytecdn.cn/thumb/da80000309bef5b49fa0"
2: "da80000309bef5b49fa0"
}
23: ""
}
3: 6
}
2 {
2 {
1: 97942455882
9 {
1: "http://sf3-ttcdn-tos.pstatp.com/img/mosaic-legacy/3792/5112637127~120x256.image"
}
23: ""
}
3: 7
}
2 {
2 {
1: 97363408846
9 {
1: "http://p3-xg.bytecdn.cn/thumb/dab00018fc4fda3b5a21"
2: "dab00018fc4fda3b5a21"
}
23: ""
}
3: 8
}
2 {
2 {
1: 96959753387
9 {
1: "http://p9-xg.bytecdn.cn/thumb/173b600285dcf9f649150"
2: "173b600285dcf9f649150"
}
23: ""
}
3: 9
}
2 {
2 {
1: 96119123780
9 {
1: "http://p9-xg.bytecdn.cn/thumb/241ef00000e3f17f517d7"
2: "241ef00000e3f17f517d7"
}
23: ""
}
3: 10
}
2 {
2 {
1: 9609510451
9 {
1: "http://p3-xg.bytecdn.cn/thumb/da51000807963daceae0"
2: "da51000807963daceae0"
}
23: ""
}
3: 11
}
2 {
2 {
1: 95931639233
9 {
1: "http://p9-xg.bytecdn.cn/thumb/71a30006cf20be61eb9b"
2: "71a30006cf20be61eb9b"
}
23: ""
}
3: 12
}
2 {
2 {
1: 94602295110
9 {
1: "http://p1-xg.bytecdn.cn/thumb/173b70008753becec983c"
2: "173b70008753becec983c"
}
23: ""
}
3: 13
}
2 {
2 {
1: 94432960458
9 {
1: "http://sf1-ttcdn-tos.pstatp.com/img/mosaic-legacy/3795/3047680722~120x256.image"
}
23: ""
}
3: 14
}
2 {
2 {
1: 94385438443
9 {
1: "http://p3-xg.bytecdn.cn/thumb/6593000eb2048e45ee0b"
2: "6593000eb2048e45ee0b"
}
23: ""
}
3: 15
}
2 {
2 {
1: 94193267099
9 {
1: "http://sf3-ttcdn-tos.pstatp.com/img/mosaic-legacy/da57000b43a72cedd2fc~120x256.image"
}
23: ""
}
3: 16
}
2 {
2 {
1: 93948536567
9 {
1: "http://sf1-ttcdn-tos.pstatp.com/img/mosaic-legacy/fe7300005f28e10f3c52~120x256.image"
}
23: ""
}
3: 17
}
2 {
2 {
1: 93175525403
9 {
1: "http://p9-xg.bytecdn.cn/thumb/da83000d9328094b90d6"
2: "da83000d9328094b90d6"
}
23: ""
}
3: 18
}
2 {
2 {
1: 93064266997
9 {
1: "http://sf1-ttcdn-tos.pstatp.com/img/mosaic-legacy/6588002a7fcd121c60f6~120x256.image"
}
23: ""
}
3: 19
}
2 {
2 {
1: 92866340217
9 {
1: "http://sf6-ttcdn-tos.pstatp.com/img/mosaic-legacy/3795/3044413937~120x256.image"
}
23: ""
}
3: 20
}
3: 365
4: "5.6\344\270\207\344\272\272\346\260\224"
6: 56661
}
}
2: "6776963484661500684_1577884771191_6776957423184169736_1"
3: 1000
4: 1577884771191
5: "fetch_time:1577884771191|start_time:1577884288940|fetch_id:6776963481247042317|flag:0|seq:1283"

View File

@ -20,7 +20,7 @@ DESCRIPTOR = _descriptor.FileDescriptor(
package='', package='',
syntax='proto2', syntax='proto2',
serialized_options=None, serialized_options=None,
serialized_pb=b'\n\x12XiguaMessage.proto\x1a\x0fXiguaUser.proto\x1a\x0fXiguaGift.proto\"`\n\x07Message\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\x10\n\x08\x63ontent2\x18\x02 \x02(\x0c\x12\x10\n\x08\x63ontent3\x18\x03 \x02(\x0c\x12\x10\n\x08\x63ontent4\x18\x04 \x02(\x0c\"f\n\x0f\x46\x61nsClubMessage\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\x0c\n\x04type\x18\x02 \x02(\x05\x12\x0f\n\x07\x63ontent\x18\x03 \x02(\t\x12\x13\n\x04user\x18\x04 \x02(\x0b\x32\x05.User\"U\n\x14\x46\x61nsClubStatsMessage\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\r\n\x05title\x18\x02 \x02(\t\x12\r\n\x05\x63ount\x18\x03 \x02(\x05\"]\n\x0eUserSeqMessage\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\x16\n\x0epopularityText\x18\x04 \x02(\t\x12\x12\n\npopularity\x18\x06 \x02(\x05\"D\n\x10\x44\x61ilyRankMessage\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\x0f\n\x07ranking\x18\n \x02(\x05\"T\n\x0b\x43hatMessage\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\x13\n\x04user\x18\x02 \x02(\x0b\x32\x05.User\x12\x0f\n\x07\x63ontent\x18\x03 \x02(\t\"]\n\rMemberMessage\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\x13\n\x04user\x18\x02 \x02(\x0b\x32\x05.User\x12\x16\n\x0epopularityText\x18\x0e \x02(\t\"\xa1\x01\n\x0bGiftMessage\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\x0e\n\x06giftId\x18\x02 \x02(\x05\x12\x10\n\x08\x63ontent4\x18\x04 \x02(\x05\x12\x10\n\x08repeated\x18\x05 \x02(\x05\x12\r\n\x05\x63ombo\x18\x06 \x02(\x05\x12\x13\n\x04user\x18\x07 \x01(\x0b\x32\x05.User\x12\x19\n\nisFinished\x18\t \x01(\x08:\x05\x66\x61lse\"*\n\x05Style\x12\r\n\x05\x63olor\x18\x01 \x01(\t\x12\x12\n\nfontWeight\x18\x04 \x01(\x05\"q\n\x06Params\x12\x0c\n\x04type\x18\x01 \x02(\x05\x12\x15\n\x05style\x18\x02 \x01(\x0b\x32\x06.Style\x12\x0e\n\x06string\x18\x0b \x01(\t\x12\x18\n\x05users\x18\x15 \x01(\x0b\x32\t.UserPack\x12\x18\n\x05gifts\x18\x16 \x01(\x0b\x32\t.GiftPack\"_\n\x0b\x44isplayText\x12\x0e\n\x06method\x18\x01 \x02(\t\x12\x0e\n\x06\x66ormat\x18\x02 \x02(\t\x12\x17\n\x07\x62gStyle\x18\x03 \x01(\x0b\x32\x06.Style\x12\x17\n\x06params\x18\x04 \x02(\x0b\x32\x07.Params\"\x87\x01\n\nCommonInfo\x12\x0e\n\x06method\x18\x01 \x02(\t\x12\x0e\n\x06msg_id\x18\x02 \x02(\x05\x12\x0f\n\x07room_id\x18\x03 \x02(\x05\x12\x13\n\x0b\x63reate_time\x18\x04 \x02(\x05\x12\x10\n\x08someEnum\x18\x06 \x01(\x05\x12!\n\x0b\x64isplayText\x18\x08 \x01(\x0b\x32\x0c.DisplayText' serialized_pb=b'\n\x12XiguaMessage.proto\x1a\x0fXiguaUser.proto\x1a\x0fXiguaGift.proto\"*\n\x07Message\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\"f\n\x0f\x46\x61nsClubMessage\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\x0c\n\x04type\x18\x02 \x02(\x05\x12\x0f\n\x07\x63ontent\x18\x03 \x02(\t\x12\x13\n\x04user\x18\x04 \x02(\x0b\x32\x05.User\"U\n\x14\x46\x61nsClubStatsMessage\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\r\n\x05title\x18\x02 \x02(\t\x12\r\n\x05\x63ount\x18\x03 \x02(\x05\"]\n\x0eUserSeqMessage\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\x16\n\x0epopularityText\x18\x04 \x02(\t\x12\x12\n\npopularity\x18\x06 \x02(\x05\"D\n\x10\x44\x61ilyRankMessage\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\x0f\n\x07ranking\x18\n \x02(\x05\"T\n\x0b\x43hatMessage\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\x13\n\x04user\x18\x02 \x02(\x0b\x32\x05.User\x12\x0f\n\x07\x63ontent\x18\x03 \x02(\t\"]\n\rMemberMessage\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\x13\n\x04user\x18\x02 \x02(\x0b\x32\x05.User\x12\x16\n\x0epopularityText\x18\x0e \x02(\t\"\xa1\x01\n\x0bGiftMessage\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\x0e\n\x06giftId\x18\x02 \x02(\x05\x12\x10\n\x08\x63ontent4\x18\x04 \x02(\x05\x12\x10\n\x08repeated\x18\x05 \x02(\x05\x12\r\n\x05\x63ombo\x18\x06 \x02(\x05\x12\x13\n\x04user\x18\x07 \x01(\x0b\x32\x05.User\x12\x19\n\nisFinished\x18\t \x01(\x08:\x05\x66\x61lse\"f\n\rSocialMessage\x12\x1f\n\ncommonInfo\x18\x01 \x02(\x0b\x32\x0b.CommonInfo\x12\x13\n\x04user\x18\x02 \x02(\x0b\x32\x05.User\x12\x0c\n\x04int4\x18\x04 \x02(\x05\x12\x11\n\tfansCount\x18\x06 \x02(\x05\"*\n\x05Style\x12\r\n\x05\x63olor\x18\x01 \x01(\t\x12\x12\n\nfontWeight\x18\x04 \x01(\x05\"q\n\x06Params\x12\x0c\n\x04type\x18\x01 \x02(\x05\x12\x15\n\x05style\x18\x02 \x01(\x0b\x32\x06.Style\x12\x0e\n\x06string\x18\x0b \x01(\t\x12\x18\n\x05users\x18\x15 \x01(\x0b\x32\t.UserPack\x12\x18\n\x05gifts\x18\x16 \x01(\x0b\x32\t.GiftPack\"_\n\x0b\x44isplayText\x12\x0e\n\x06method\x18\x01 \x02(\t\x12\x0e\n\x06\x66ormat\x18\x02 \x02(\t\x12\x17\n\x07\x62gStyle\x18\x03 \x01(\x0b\x32\x06.Style\x12\x17\n\x06params\x18\x04 \x02(\x0b\x32\x07.Params\"\x87\x01\n\nCommonInfo\x12\x0e\n\x06method\x18\x01 \x02(\t\x12\x0e\n\x06msg_id\x18\x02 \x02(\x05\x12\x0f\n\x07room_id\x18\x03 \x02(\x05\x12\x13\n\x0b\x63reate_time\x18\x04 \x02(\x05\x12\x10\n\x08someEnum\x18\x06 \x01(\x05\x12!\n\x0b\x64isplayText\x18\x08 \x01(\x0b\x32\x0c.DisplayText'
, ,
dependencies=[XiguaUser__pb2.DESCRIPTOR,XiguaGift__pb2.DESCRIPTOR,]) dependencies=[XiguaUser__pb2.DESCRIPTOR,XiguaGift__pb2.DESCRIPTOR,])
@ -41,27 +41,6 @@ _MESSAGE = _descriptor.Descriptor(
message_type=None, enum_type=None, containing_type=None, message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None, is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR), serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='content2', full_name='Message.content2', index=1,
number=2, type=12, cpp_type=9, label=2,
has_default_value=False, default_value=b"",
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='content3', full_name='Message.content3', index=2,
number=3, type=12, cpp_type=9, label=2,
has_default_value=False, default_value=b"",
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='content4', full_name='Message.content4', index=3,
number=4, type=12, cpp_type=9, label=2,
has_default_value=False, default_value=b"",
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
], ],
extensions=[ extensions=[
], ],
@ -75,7 +54,7 @@ _MESSAGE = _descriptor.Descriptor(
oneofs=[ oneofs=[
], ],
serialized_start=56, serialized_start=56,
serialized_end=152, serialized_end=98,
) )
@ -126,8 +105,8 @@ _FANSCLUBMESSAGE = _descriptor.Descriptor(
extension_ranges=[], extension_ranges=[],
oneofs=[ oneofs=[
], ],
serialized_start=154, serialized_start=100,
serialized_end=256, serialized_end=202,
) )
@ -171,8 +150,8 @@ _FANSCLUBSTATSMESSAGE = _descriptor.Descriptor(
extension_ranges=[], extension_ranges=[],
oneofs=[ oneofs=[
], ],
serialized_start=258, serialized_start=204,
serialized_end=343, serialized_end=289,
) )
@ -216,8 +195,8 @@ _USERSEQMESSAGE = _descriptor.Descriptor(
extension_ranges=[], extension_ranges=[],
oneofs=[ oneofs=[
], ],
serialized_start=345, serialized_start=291,
serialized_end=438, serialized_end=384,
) )
@ -254,8 +233,8 @@ _DAILYRANKMESSAGE = _descriptor.Descriptor(
extension_ranges=[], extension_ranges=[],
oneofs=[ oneofs=[
], ],
serialized_start=440, serialized_start=386,
serialized_end=508, serialized_end=454,
) )
@ -299,8 +278,8 @@ _CHATMESSAGE = _descriptor.Descriptor(
extension_ranges=[], extension_ranges=[],
oneofs=[ oneofs=[
], ],
serialized_start=510, serialized_start=456,
serialized_end=594, serialized_end=540,
) )
@ -344,8 +323,8 @@ _MEMBERMESSAGE = _descriptor.Descriptor(
extension_ranges=[], extension_ranges=[],
oneofs=[ oneofs=[
], ],
serialized_start=596, serialized_start=542,
serialized_end=689, serialized_end=635,
) )
@ -417,8 +396,60 @@ _GIFTMESSAGE = _descriptor.Descriptor(
extension_ranges=[], extension_ranges=[],
oneofs=[ oneofs=[
], ],
serialized_start=692, serialized_start=638,
serialized_end=853, serialized_end=799,
)
_SOCIALMESSAGE = _descriptor.Descriptor(
name='SocialMessage',
full_name='SocialMessage',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='commonInfo', full_name='SocialMessage.commonInfo', index=0,
number=1, type=11, cpp_type=10, label=2,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='user', full_name='SocialMessage.user', index=1,
number=2, type=11, cpp_type=10, label=2,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='int4', full_name='SocialMessage.int4', index=2,
number=4, type=5, cpp_type=1, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='fansCount', full_name='SocialMessage.fansCount', index=3,
number=6, type=5, cpp_type=1, label=2,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=801,
serialized_end=903,
) )
@ -455,8 +486,8 @@ _STYLE = _descriptor.Descriptor(
extension_ranges=[], extension_ranges=[],
oneofs=[ oneofs=[
], ],
serialized_start=855, serialized_start=905,
serialized_end=897, serialized_end=947,
) )
@ -514,8 +545,8 @@ _PARAMS = _descriptor.Descriptor(
extension_ranges=[], extension_ranges=[],
oneofs=[ oneofs=[
], ],
serialized_start=899, serialized_start=949,
serialized_end=1012, serialized_end=1062,
) )
@ -566,8 +597,8 @@ _DISPLAYTEXT = _descriptor.Descriptor(
extension_ranges=[], extension_ranges=[],
oneofs=[ oneofs=[
], ],
serialized_start=1014, serialized_start=1064,
serialized_end=1109, serialized_end=1159,
) )
@ -632,8 +663,8 @@ _COMMONINFO = _descriptor.Descriptor(
extension_ranges=[], extension_ranges=[],
oneofs=[ oneofs=[
], ],
serialized_start=1112, serialized_start=1162,
serialized_end=1247, serialized_end=1297,
) )
_MESSAGE.fields_by_name['commonInfo'].message_type = _COMMONINFO _MESSAGE.fields_by_name['commonInfo'].message_type = _COMMONINFO
@ -648,6 +679,8 @@ _MEMBERMESSAGE.fields_by_name['commonInfo'].message_type = _COMMONINFO
_MEMBERMESSAGE.fields_by_name['user'].message_type = XiguaUser__pb2._USER _MEMBERMESSAGE.fields_by_name['user'].message_type = XiguaUser__pb2._USER
_GIFTMESSAGE.fields_by_name['commonInfo'].message_type = _COMMONINFO _GIFTMESSAGE.fields_by_name['commonInfo'].message_type = _COMMONINFO
_GIFTMESSAGE.fields_by_name['user'].message_type = XiguaUser__pb2._USER _GIFTMESSAGE.fields_by_name['user'].message_type = XiguaUser__pb2._USER
_SOCIALMESSAGE.fields_by_name['commonInfo'].message_type = _COMMONINFO
_SOCIALMESSAGE.fields_by_name['user'].message_type = XiguaUser__pb2._USER
_PARAMS.fields_by_name['style'].message_type = _STYLE _PARAMS.fields_by_name['style'].message_type = _STYLE
_PARAMS.fields_by_name['users'].message_type = XiguaUser__pb2._USERPACK _PARAMS.fields_by_name['users'].message_type = XiguaUser__pb2._USERPACK
_PARAMS.fields_by_name['gifts'].message_type = XiguaGift__pb2._GIFTPACK _PARAMS.fields_by_name['gifts'].message_type = XiguaGift__pb2._GIFTPACK
@ -662,6 +695,7 @@ DESCRIPTOR.message_types_by_name['DailyRankMessage'] = _DAILYRANKMESSAGE
DESCRIPTOR.message_types_by_name['ChatMessage'] = _CHATMESSAGE DESCRIPTOR.message_types_by_name['ChatMessage'] = _CHATMESSAGE
DESCRIPTOR.message_types_by_name['MemberMessage'] = _MEMBERMESSAGE DESCRIPTOR.message_types_by_name['MemberMessage'] = _MEMBERMESSAGE
DESCRIPTOR.message_types_by_name['GiftMessage'] = _GIFTMESSAGE DESCRIPTOR.message_types_by_name['GiftMessage'] = _GIFTMESSAGE
DESCRIPTOR.message_types_by_name['SocialMessage'] = _SOCIALMESSAGE
DESCRIPTOR.message_types_by_name['Style'] = _STYLE DESCRIPTOR.message_types_by_name['Style'] = _STYLE
DESCRIPTOR.message_types_by_name['Params'] = _PARAMS DESCRIPTOR.message_types_by_name['Params'] = _PARAMS
DESCRIPTOR.message_types_by_name['DisplayText'] = _DISPLAYTEXT DESCRIPTOR.message_types_by_name['DisplayText'] = _DISPLAYTEXT
@ -724,6 +758,13 @@ GiftMessage = _reflection.GeneratedProtocolMessageType('GiftMessage', (_message.
}) })
_sym_db.RegisterMessage(GiftMessage) _sym_db.RegisterMessage(GiftMessage)
SocialMessage = _reflection.GeneratedProtocolMessageType('SocialMessage', (_message.Message,), {
'DESCRIPTOR' : _SOCIALMESSAGE,
'__module__' : 'XiguaMessage_pb2'
# @@protoc_insertion_point(class_scope:SocialMessage)
})
_sym_db.RegisterMessage(SocialMessage)
Style = _reflection.GeneratedProtocolMessageType('Style', (_message.Message,), { Style = _reflection.GeneratedProtocolMessageType('Style', (_message.Message,), {
'DESCRIPTOR' : _STYLE, 'DESCRIPTOR' : _STYLE,
'__module__' : 'XiguaMessage_pb2' '__module__' : 'XiguaMessage_pb2'

9
api.py
View File

@ -1,7 +1,5 @@
# coding=utf-8 # coding=utf-8
import json
import sys import sys
import random
from Struct.MemberMsg import MemberMsg from Struct.MemberMsg import MemberMsg
from Struct.User import User from Struct.User import User
@ -12,7 +10,7 @@ import requests
import time import time
from datetime import datetime, timedelta from datetime import datetime, timedelta
from Xigua_pb2 import XiguaLive from Xigua_pb2 import XiguaLive
from XiguaMessage_pb2 import GiftMessage, UserSeqMessage, ChatMessage, MemberMessage, FansClubMessage from XiguaMessage_pb2 import FansClubMessage, SocialMessage
DEBUG = False DEBUG = False
COMMON_GET_PARAM = ( COMMON_GET_PARAM = (
@ -384,6 +382,11 @@ class XiGuaLiveApi:
elif _each.method == "WebcastChatMessage": elif _each.method == "WebcastChatMessage":
_chat = Chat(_each.raw) _chat = Chat(_each.raw)
self.onChat(_chat) self.onChat(_chat)
elif _each.method == "WebcastSocialMessage":
_socialMessage = SocialMessage()
_socialMessage.ParseFromString(_each.raw)
_user = User(_socialMessage.user)
self.onSubscribe(_user)
elif _each.method == "WebcastFansclubMessage": elif _each.method == "WebcastFansclubMessage":
_fansClubMessage = FansClubMessage() _fansClubMessage = FansClubMessage()
_fansClubMessage.ParseFromString(_each.raw) _fansClubMessage.ParseFromString(_each.raw)