mamoe / mirai

高效率 QQ 机器人支持库
https://mirai.mamoe.net
GNU Affero General Public License v3.0
14.28k stars 2.53k forks source link

收到含商城表情的消息时,只会解析出单独的商城表情 #2718

Open NoMathExpectation opened 1 year ago

NoMathExpectation commented 1 year ago

问题描述

当遇到含有 MarketFace 的消息时,mirai 解析出的消息会只含有 MarketFace

复现

这里使用了一个自己写的 //repeat 指令,它会复读去掉 //repeat 之后的消息 在电脑qq端发送带 MarketFace 的消息如下:

电脑qq端发送

![image](https://github.com/mamoe/mirai/assets/85624722/62d874cf-c763-47f2-bfca-4e3c5fbf8822) ![image](https://github.com/mamoe/mirai/assets/85624722/c265e8aa-6e13-4ed7-b27c-7940d284de9f)

mirai 控制台显示

``` 2023-06-28 23:35:59 V/Bot.***: 23333(***) -> //repeat a 2023-06-28 23:36:00 V/Bot.***: Friend(***) <- [mirai:quote:[mirai:source:ids=[***], internalIds=[***], from friend *** to *** at 1687966560], content=//repeat a]a 2023-06-28 23:36:59 V/Bot.***: 23333(***) -> [mirai:marketface:202657,] 2023-06-28 23:39:09 V/Bot.***: 23333(***) -> [mirai:marketface:202657,] 2023-06-28 23:39:44 V/Bot.***: 23333(***) -> //repeat [mirai:image:{17E5AAF3-374B-C093-B194-5787E319E6A8}.png, width=227, height=193, size=32524, type=PNG, isEmoji=false] 2023-06-28 23:39:45 V/Bot.***: Friend(***) <- [mirai:quote:[mirai:source:ids=[***], internalIds=[***], from friend *** to *** at 1687966785], content=//repeat [mirai:image:{17E5AAF3-374B-C093-B194-5787E319E6A8}.png, width=227, height=193, size=32524, type=PNG, isEmoji=false]][mirai:image:{17E5AAF3-374B-C093-B194-5787E319E6A8}.png, width=0, height=0, size=0, type=UNKNOWN, isEmoji=false] ```

手机收到的

![Screenshot_20230628_235544](https://github.com/mamoe/mirai/assets/85624722/119f4dd1-fbfd-440e-bb7f-5df98f97acfe)

mirai-core 版本

2.15.0

bot-protocol

IPAD

其他组件版本

Running MiraiConsole v2.15.0, built on 2023-02-24 01:56:48.
Frontend Terminal: version 2.14.0, provided by Mamoe Technologies

Permission Service: Built In Permission Service

Plugins: Chat Command v0.5.0, messageSender v1.4, net.mamoe.mirai-api-http v1.10.0, mirai-device-generator v1.1.3, mirai-login-solver-sakura v0.0.4, Silk Converter v0.0.3, NMEBoot v1.3.4-2023061801, MCL Addon v2.1.1

Object Pending Finalization Count: 0
                 committed |  init   |   used   |  max
    Heap Memory:  692.0MB  | 254.0MB | 455.13MB | 3.94GB
Non-Heap Memory: 150.62MB  | 7.31MB  | 139.54MB |   -1

系统日志

No response

网络日志

//测试期间的网络日志
2023-06-28 23:36:00 V/: Send: MessageSvc.PbSendMsg(MessageSvc.PbSendMsg)
2023-06-28 23:36:00 V/: Recv: MessageSvc.PbSendMsg
2023-06-28 23:39:45 V/: Send: MessageSvc.PbSendMsg(MessageSvc.PbSendMsg)
2023-06-28 23:39:45 V/: Recv: MessageSvc.PbSendMsg

补充信息

No response

sandtechnology commented 1 year ago

这是符合预期的 因为消息上商场表情就只能单独发送 电脑QQ客户端属于是显示bug 手机是正常的显示

sandtechnology commented 1 year ago

另:这边使用了最新版本的电脑版TIM复现 TIM会把商城表情单独转为图片发送 所以这是电脑端QQ的bug