mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-19 18:16:25 +00:00
Go add statictic view
This commit is contained in:
@@ -421,13 +421,11 @@ func doFile(rsp http.ResponseWriter, r *http.Request, repo *repomgr.Repo, fileID
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if operation != "view" {
|
oper := "web-file-download"
|
||||||
oper := "web-file-download"
|
if operation == "download-link" {
|
||||||
if operation == "download-link" {
|
oper = "link-file-download"
|
||||||
oper = "link-file-download"
|
|
||||||
}
|
|
||||||
sendStatisticMsg(repo.StoreID, user, oper, file.FileSize)
|
|
||||||
}
|
}
|
||||||
|
sendStatisticMsg(repo.StoreID, user, oper, file.FileSize)
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user