MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    对于任意好友消息,出现的ids、targetId数据对不上的问题

    BUG反馈
    4
    5
    500
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • 2
      2446694 last edited by 2446694

      问题1

      对于任意好友消息,引用文本消息的targetId都为0
      图1
      图2
      但是对于ForwardMessage,targetId就是正确的,如问题2的第一张图

      问题2

      对于任意好友消息,无论对方消息还是自己的消息,无论转发消息还是文本消息,均出现ids对不上号的问题
      图1
      图2

      问题3

      对于任意监听到的好友消息,MessageChain的source中的Target都是不正确的
      图1
      正确的应该如下图这样
      图2


      还有个概率存在的问题,机器人发送的消息中

      log.trace("MessagePostSendEvent...");
      OnlineMessageSource.Outgoing source = Objects.requireNonNull(event.getReceipt()).getSource();
      source.getIds() // source.getIds() 有时候会返回一个空的int[]数组
      
      1 Reply Last reply Reply Quote 0
      • 2
        2446694 last edited by 2446694

        使用依赖是 mirai-core:2.15.0-M1
        登录协议 ANDROID_WATCH

        1 Reply Last reply Reply Quote 0
        • cssxsh
          cssxsh last edited by

          汇报到 github 比较好

          1 Reply Last reply Reply Quote 0
          • 小仙-老师
            小仙-老师 last edited by

            玩原神玩的

            1 Reply Last reply Reply Quote 0
            • 1
              18727518385 last edited by

              太可怕了

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact