From 2faf5b6f9044f81ccc08aeb04b087174678b5c1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B5=AB=E7=84=B6?= Date: Thu, 5 Dec 2024 14:30:18 +0800 Subject: [PATCH] Go add statictic view --- fileserver/fileop.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/fileserver/fileop.go b/fileserver/fileop.go index 3a39c647..7206324e 100644 --- a/fileserver/fileop.go +++ b/fileserver/fileop.go @@ -421,13 +421,11 @@ func doFile(rsp http.ResponseWriter, r *http.Request, repo *repomgr.Repo, fileID } } - if operation != "view" { - oper := "web-file-download" - if operation == "download-link" { - oper = "link-file-download" - } - sendStatisticMsg(repo.StoreID, user, oper, file.FileSize) + oper := "web-file-download" + if operation == "download-link" { + oper = "link-file-download" } + sendStatisticMsg(repo.StoreID, user, oper, file.FileSize) return nil }