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

复读单张图片出错 #282

Closed
Arondight opened this issue Jan 3, 2022 · 2 comments
Closed

复读单张图片出错 #282

Arondight opened this issue Jan 3, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@Arondight
Copy link

Node.js Version

v16.13.1

Package Version

2.1.8

Login Protocol

iPad

Bug Description

复读单张图片失败,但是复读任意文字+图片正常。

复读过程:

  1. raw_message = toCqcode
  2. 发送 fromCqcode

应该跟风控没关系,我另一个没风控的 bot 也这样

Log Details

[2022-01-03T19:52:12.543] [INFO] [iPad:***] - recv from: [Group: ***(***), Member: ***(***)] {image:0383E721FCACBB67514AC97B7E687250}
msg.raw_message(raw) is:
[图片]
msg.raw_message(toCqcode) is:
[CQ:image,type=image,file=0383e721fcacbb67514ac97b7e68725019432-331-196.png,url=https://gchat.qpic.cn/gchatpic_new/992737446/2149042417-2195229119-0383E721FCACBB67514AC97B7E687250/0?term=3,asface=false]
fromCqcode(msg) is:
[
  {
    type: 'image',
    file: '0383e721fcacbb67514ac97b7e68725019432-331-196.png',
    url: 'https://gchat.qpic.cn/gchatpic_new/992737446/2149042417-2195229119-0383E721FCACBB67514AC97B7E687250/0?term=3',
    asface: false
  }
]
[2022-01-03T19:52:12.545] [DEBUG] [iPad:***] - 开始图片任务,共有1张图片
[2022-01-03T19:52:12.702] [DEBUG] [iPad:***] - 图片任务结束
[2022-01-03T19:52:14.939] [WARN] [iPad:***] - 群消息可能被风控,将尝试使用分片发送
[2022-01-03T19:52:19.942] [ERROR] [iPad:***] - 错误:消息发送失败,因为“群消息发送失败,请检查消息内容”。
[2022-01-03T19:52:29.197] [INFO] [iPad:***] - recv from: [Group: ***(***), Member: ***(***)] text{image:0383E721FCACBB67514AC97B7E687250}
msg.raw_message(raw) is:
text[图片]
msg.raw_message(toCqcode) is:
text[CQ:image,type=image,file=0383e721fcacbb67514ac97b7e68725019432-331-196.png,url=https://gchat.qpic.cn/gchatpic_new/992737446/2149042417-3220616856-0383E721FCACBB67514AC97B7E687250/0?term=3,asface=false]
fromCqcode(msg) is:
[
  { type: 'text', text: 'text' },
  {
    type: 'image',
    file: '0383e721fcacbb67514ac97b7e68725019432-331-196.png',
    url: 'https://gchat.qpic.cn/gchatpic_new/992737446/2149042417-3220616856-0383E721FCACBB67514AC97B7E687250/0?term=3',
    asface: false
  }
]
[2022-01-03T19:52:29.200] [DEBUG] [iPad:***] - 开始图片任务,共有1张图片
[2022-01-03T19:52:29.358] [DEBUG] [iPad:***] - 图片任务结束
[2022-01-03T19:52:31.606] [WARN] [iPad:***] - 群消息可能被风控,将尝试使用分片发送
[2022-01-03T19:52:31.841] [INFO] [iPad:***] - succeed to send: [Group(***)] text[图片]
@Arondight
Copy link
Author

另外,升级之前 1.x 没有这个问题

@Arondight
Copy link
Author

另外,直接发送 base64 没有问题

[
  {
    type: 'image',
    file: 'base64://iVBORw0KGgoAAAAN'... xxx more characters
  }
]

@takayama-lily takayama-lily added the bug Something isn't working label Jan 3, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants