Refactor packages (func name & UI) (#34773)

1. Use `OpenXxx` instead of `GetXxx` because the returned readers should
be correctly closed, and clarify the behaviors of the functions: they
increase the download counter
2. Use `packages-content` styles instead of `issue-content`
此提交包含在:
wxiaoguang
2025-06-18 19:04:24 +00:00
提交者 GitHub
父節點 46a1d52235
當前提交 8efc4ca334
共有 29 個檔案被更改,包括 73 行新增51 行删除
+2 -2
查看文件
@@ -513,9 +513,9 @@ func DownloadPackageFile(ctx *context.Context) {
return
}
s, u, _, err := packages_service.GetPackageFileStream(ctx, pf)
s, u, _, err := packages_service.OpenFileForDownload(ctx, pf)
if err != nil {
ctx.ServerError("GetPackageFileStream", err)
ctx.ServerError("OpenFileForDownload", err)
return
}