Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可以对弹幕姬的各个消息加上来自数据包上的时间戳吗? #118

Open
cabinary opened this issue Oct 8, 2022 · 4 comments

Comments

@cabinary
Copy link

cabinary commented Oct 8, 2022

可以对弹幕姬PluginFramework的DANMU_MSG之类的时间加上来自数据包的时间戳吗?比如弹幕最主要的就是时间戳和发送的uid和文本,这对一些特殊的api有用,因为猜测b站官方会将这项当作索引。

@copyliu
Copy link
Owner

copyliu commented Oct 8, 2022

原来有时间戳的?

@copyliu
Copy link
Owner

copyliu commented Oct 8, 2022

暂时你可以直接徒手拆 RawDataJToken 整一下, 用调试插件可以显示到整个json的结构和内容方便整

回头我看看有没有必要加

@cabinary
Copy link
Author

cabinary commented Oct 8, 2022

暂时你可以直接徒手拆 RawDataJToken 整一下, 用调试插件可以显示到整个json的结构和内容方便整

回头我看看有没有必要加

有的,特别是DANMU_MSG里的info第一项的数组里,大概第五项是时间戳。一般来说是带上毫秒的长时间戳,去掉后三位就是Unix。
这个我摊牌了,其实我想搞举报插件的XD,关键参数就是时间戳、uid、文本,三个必须对。否则即使举报成功,有id回来也不会被系统封禁(不会发生任何事,甚至不排除被系统检测到接口滥用被封号)。而房间不用对(这个很有问题,比如会引导弹幕被封的其实是另外的房间,然后导向去某个房间带节奏)
可以直接拆JSON那行XD,我回头就搞个。

@copyliu
Copy link
Owner

copyliu commented Oct 8, 2022

可以的, 插件返回会有带一个 RawDataJToken 直接是 JToken.Parse() 之后的内容, 你可以直接拿来用. 调试插件会告诉你所有的结构你可以用来复制粘贴.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants