MiraiForum

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

    求助,使用mirai-api-http上传群文件问题

    HTTP API和第三方SDK
    1
    1
    43
    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.
    • L
      looper last edited by

      {
          "code":0,
          "msg":"",
          "data":{
              "name":"有没有特别血腥恐怖文章?.txt",
              "id":"/c2737b3b-f1bd-4964-b3a5-b14f70a4b58c",
              "path":"/有没有特别血腥恐怖文章?.txt",
              "parent":{
                  "name":"/",
                  "id":"/",
                  "path":"/",
                  "parent":null,
                  "contact":{
                      "id":663903282,
                      "name":"Mirai Robot",
                      "permission":"MEMBER"
                  },
                  "isFile":false,
                  "isDictionary":true,
                  "isDirectory":true,
                  "size":0,
                  "sha1":null,
                  "md5":null,
                  "uploaderId":null,
                  "uploadTime":null,
                  "lastModifyTime":null,
                  "downloadInfo":null
              },
              "contact":{
                  "id":663903282,
                  "name":"Mirai Robot",
                  "permission":"MEMBER"
              },
              "isFile":true,
              "isDictionary":false,
              "isDirectory":false,
              "size":39090,
              "sha1":"ACAF7286F826F255B976923DF277996401229437",
              "md5":"F91A183B14B6A019256245477E3128B7",
              "uploaderId":1398783998,
              "uploadTime":1673318361,
              "lastModifyTime":1673318361,
              "downloadInfo":null
          }
      }
      

      使用群文件上传接口,上传后返参和文档上的返参不一致,里面的parent节点,文档上为null,而我这里是有值的,而且我上传的群文件是两个一模一样的文件,严重怀疑是因为parent节点有值导致的,请求入参也都是根据文档上面传的,麻烦大佬帮我看一下

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