Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

fix: 合并转发消息使用群聊模式会导致部分框架无法解析来源 #361

Merged
merged 1 commit into from
Jun 5, 2022

Conversation

dmlgzs
Copy link
Contributor

@dmlgzs dmlgzs commented May 20, 2022

原版 QQ 合并转发群消息时,[1][14] 中实际上无数据,nickname 只存储在 [1][9][4] 中。
而 oicq 发送的合并转发消息两处都存放有 nickname,由于部分框架解析时的逻辑问题,这会导致其在解析消息时误认为无来源或来自私聊消息,例如 oicq v1 的 /lib/message/parser.js 中的

        if (head[14]) {
            nickname = String(head[14]);
        } else {
            try {
                nickname = String(head[9][4]);
                group_id = head[9][1];
            } catch { }
        }

当 head[14] 和 head[9][4] 同时存在时,将无法返回 head[9][1] 中的 group_id。

@takayama-lily takayama-lily merged commit 1c4b261 into takayama-lily:main Jun 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants