MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接
    1. Home
    2. lngex
    3. Topics
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 7
    • Best 0
    • Controversial 0
    • Groups 0

    Topics created by lngex

    • lngex

      发送文件时不能出现字符 ":"
      开发交流 • • lngex

      2
      0
      Votes
      2
      Posts
      284
      Views

      lngex

      我在Windows上运行的程序,所以在文件路径上必有 “:”,如
      C:;请问有没有什么办法解决

      /** * 发送视频文件 * @param group 群 * @param url 视频超链接 * @return 当前消息链 */ public Msg video(Group group, String url) { File file = new File("E:\\bot\\video", System.currentTimeMillis() + ".mp4"); // 下载文件到file HttpClientUtils.getFile(url,file); this.messageChainBuilder.append(group.getFiles().uploadNewFile(file.getPath(),ExternalResource.create(file)).toMessage()); return this; }

      错误信息:
      java.lang.IllegalArgumentException: Chars ':*?"<>|' are not allowed in path. RemoteFile path contains illegal char: ':'. path='E:\bot\video\1657074806337.mp4'

    • lngex

      自定义滑块或者在登陆时会一直循环调用滑块处理
      开发交流 • • lngex

      8
      0
      Votes
      8
      Posts
      531
      Views

      lngex

      替代文字,如图,目前图片处理还在弹出

    • 1 / 1