From bde31d8768c42aa97d47d74988017c9d2aa510fa Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Sat, 29 Mar 2025 16:10:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9B=B4=E6=96=B0=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=B6=88=E6=81=AF=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- service/fileService.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/fileService.go b/service/fileService.go index 2deaf1d..ca2c7a1 100644 --- a/service/fileService.go +++ b/service/fileService.go @@ -229,7 +229,7 @@ func UpdateUserFile(userID int, fileAuthID int, fileAuthName string) error { return errors.New("no permission") } fileAuth.UserFileName = fileAuthName - err := dao.UpdateFileAuthByID(userID, fileAuth) + err := dao.UpdateFileAuthByID(fileAuthID, fileAuth) return err } func DeleteUserFile(userID, fileAuthID int) error {