yyuueexxiinngg / onebot-kotlin

OneBot标准的Kotlin实现及mirai插件 - 原cqhttp-mirai
GNU Affero General Public License v3.0
584 stars 139 forks source link

[BUG]Array模式下上报数据类型错误 #127

Closed StarHeartHunt closed 3 years ago

StarHeartHunt commented 3 years ago

array形式上报中的data类型应该是str,而非int。

下面左侧为onebot-kotlin上报,右侧为根据onebot标准构造的Segment

01-21 00:29:08 [DEBUG] nonebot | Checking for matchers in priority 1...
MessageSegment(type='at', data={'qq': 3403056756}) MessageSegment(type='at', data={'qq': '3403056756'})
01-21 00:29:08 [INFO] nonebot | CQHTTP 3403056756 | [message.group.normal]: Message 1201729089 from 947371563@[群:960951162] "/echo test"

复现

版本

onebot-kotlin- 0.3.4

390eccc