🎇 指定路径与深度rebuild

This commit is contained in:
微凉
2021-04-14 13:34:14 +08:00
parent b613598c2b
commit 427244d8d5
9 changed files with 123 additions and 25 deletions

View File

@ -45,7 +45,7 @@ func Down(c *gin.Context) {
c.JSON(200, MetaResponse(406, "无法下载目录."))
return
}
drive := utils.GetDriveByName(strings.Split(dir, "/")[0])
drive := utils.GetDriveByName(strings.Split(filePath, "/")[0])
if drive == nil {
c.JSON(200, MetaResponse(500, "找不到drive."))
return