Skip to content

Commit

Permalink
Go add statictic view
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Dec 5, 2024
1 parent 4592ce5 commit 2faf5b6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions fileserver/fileop.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2faf5b6

Please sign in to comment.