🎇 支持mysql

This commit is contained in:
微凉
2021-03-16 23:15:37 +08:00
parent 4d0d892ce7
commit a5b2f998ab
15 changed files with 85 additions and 89 deletions

View File

@ -44,6 +44,11 @@ func Path(c *gin.Context) {
}
// file
if file.Type == "file" {
if file.Password == "" {
file.Password = "n"
} else {
file.Password = "y"
}
c.JSON(200, DataResponse(file))
return
}
@ -57,7 +62,7 @@ func Path(c *gin.Context) {
for i, _ := range *files {
if (*files)[i].Password == "" {
(*files)[i].Password = "n"
}else {
} else {
(*files)[i].Password = "y"
}
}