MiraiForum

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

    群聊发送图片大概率无法显示,私聊可以

    BUG反馈
    1
    1
    211
    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.
    • ddyasmile
      ddyasmile last edited by

      val imageDir = File(dirPath)
      val fileList = imageDir.listFiles(
          FilenameFilter { _, name -> name.endsWith(".jpg") || name.endsWith(".png") })
      val imageResource = fileList.random().toExternalResource()
      val image = subject.uploadImage(imageResource)
      imageResource.close()
      subject.sendMessage(image)
      

      控制台显示发了,但是群里看不到(很小概率能看到)
      43bd58ad-04f2-4b57-8bef-8ddf7941e4ab-image.png

      请问这个是风控问题吗。

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