🐛 fix: #43 直链密码错误
This commit is contained in:
@ -32,7 +32,7 @@ func Down(c *gin.Context) {
|
|||||||
c.JSON(200, MetaResponse(500, err.Error()))
|
c.JSON(200, MetaResponse(500, err.Error()))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if fileModel.Password != "" && fileModel.Password != utils.Get16MD5Encode(down.Password) {
|
if fileModel.Password != "" && down.Password != utils.Get16MD5Encode(fileModel.Password) {
|
||||||
if down.Password == "" {
|
if down.Password == "" {
|
||||||
c.JSON(200, MetaResponse(401, "need password."))
|
c.JSON(200, MetaResponse(401, "need password."))
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user