Ver código fonte

Fix unable to search recursively when getting file information by id

ryoii 3 anos atrás
pai
commit
bfdfe91284

+ 1 - 1
mirai-api-http/src/main/kotlin/net/mamoe/mirai/api/http/adapter/internal/action/file.kt

@@ -116,7 +116,7 @@ private suspend fun AbstractFileTargetDTO.getAbsoluteFile(): AbsoluteFile =
         } else if (id.isEmpty()) {
             null // 根目录不能作为文件
         } else {
-            it.resolveFileById(id)
+            it.resolveFileById(id, true)
         }
     } ?: throw NoSuchElementException()