🐛 fix: #43 直链密码错误

This commit is contained in:
微凉
2021-03-16 16:25:02 +08:00
parent 5c6344cac0
commit 8e9ddcf81e

View File

@ -32,7 +32,7 @@ func Down(c *gin.Context) {
c.JSON(200, MetaResponse(500, err.Error()))
return
}
if fileModel.Password != "" && fileModel.Password != utils.Get16MD5Encode(down.Password) {
if fileModel.Password != "" && down.Password != utils.Get16MD5Encode(fileModel.Password) {
if down.Password == "" {
c.JSON(200, MetaResponse(401, "need password."))
} else {