From 8e9ddcf81e75bc88f83ae564ca87e9e8e9376fe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=AE=E5=87=89?= <36558727+Xhofe@users.noreply.github.com> Date: Tue, 16 Mar 2021 16:25:02 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20fix:=20#43=20=E7=9B=B4=E9=93=BE?= =?UTF-8?q?=E5=AF=86=E7=A0=81=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/controllers/down.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/controllers/down.go b/server/controllers/down.go index c6601497..795a34a9 100644 --- a/server/controllers/down.go +++ b/server/controllers/down.go @@ -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 {