Repository navigation
Conversation
Owner
|
感觉写成recursive所有字段有点离谱,应该精确的处理可能出问题的字段,并且应该在收到以后,所有步骤之前处理,将其替换为比如.而不是别的来保证长度不变(用户名,备注,用户发送的内容...) |
Contributor
|
按之前讨论的方向重做了一版:#14。区别是只点名字段(昵称/备注/正文/转发标题/群标题/申请附言等),在事件收到时与读接口映射处替换成 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
platform-crossgram: 清理 QQNT 消息中的非法字符串字符
问题
QQNT 事件的消息文本、发送者备注等字段可能包含 NUL (
U+0000) 或孤立的 UTF-16 代理码元。PostgreSQL 无法保存这些字符串,导致当前 WebSocket 事件持续重试,持久化检查点停住,后续 QQ 消息也无法按序处理。修复
@mention范围错位。验证
yarn vitest run packages/platform-crossgram/src/platform.test.ts --config vitest.config.mts:129 项通过。yarn vitest run packages/platform-crossgram/src/message-order.e2e.test.ts --config vitest.mtproto-e2e.config.mts --maxWorkers=1:20 项通过。yarn typecheck --pretty false:通过。全是codex写的 修了个使用时遇到的问题 也不知道这个问题应该是在主项目改还是bridge改 所以如果有问题或者不欢迎ai-pr可以随时关闭orz