Skip to content

Commit abb7672

Browse files
committed
修改第一次的发包数据为00 61
1 parent d38c037 commit abb7672

File tree

3 files changed

+22
-23
lines changed

3 files changed

+22
-23
lines changed

CrawlPandaDanmu/.idea/workspace.xml

Lines changed: 19 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CrawlPandaDanmu/src/main/java/Crawl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ public void login() throws IOException {
105105
socket = new Socket(serverIp,port);
106106
System.out.println("连接弹幕服务器:" + serverIp + ":" + port);
107107
ByteArrayOutputStream byteArray = new ByteArrayOutputStream();
108-
byte[] b = new byte[]{0x00, 0x06, 0x00, 0x02, 0x00, 0x60, 0x75, 0x3a};
108+
byte[] b = new byte[]{0x00, 0x06, 0x00, 0x02, 0x00, 0x61};
109109
byteArray.write(b);
110110

111-
String msg = rid + "@" + appid + "\n" +
111+
String msg = "u:" + rid + "@" + appid + "\n" +
112112
"k:" + k + "\n" +
113113
"t:" + t + "\n" +
114114
"ts:" + ts + "\n" +
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#要抓取的斗鱼房间网址
2-
roomId = 83603
2+
roomId = 88911

0 commit comments

Comments
 (0)