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 行删除
+1 -1
查看文件
@@ -293,7 +293,7 @@ func DownloadPackageFile(ctx *context.Context) {
pf := pfs[0]
s, u, _, err := packages_service.GetPackageFileStream(ctx, pf)
s, u, _, err := packages_service.OpenFileForDownload(ctx, pf)
if err != nil {
apiError(ctx, http.StatusInternalServerError, err)
return