mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-24 05:35:46 +08:00
fix: remove project tasks_count
This commit is contained in:
@@ -12,11 +12,11 @@ class Trace::PdfReportService < Trace::ClientService
|
||||
end
|
||||
|
||||
def call
|
||||
content = URI.open("#{domain}#{base_url}#{url}?task_id#{task_id}", "Authorization" => token)
|
||||
content = open("#{domain}#{base_url}#{url}?task_id=#{task_id}", "Authorization" => token)
|
||||
if content.is_a?(Tempfile)
|
||||
check_file_path
|
||||
IO.copy_stream(content, "#{save_path}/#{task_id}.zip")
|
||||
return {code: 200, download_url: "/trace_task_results/#{task_id}.zip"}
|
||||
IO.copy_stream(content, "#{save_path}/#{task_id}.pdf")
|
||||
return {code: 200, download_url: "/trace_task_results/#{task_id}.pdf"}
|
||||
else
|
||||
return {code: 404}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user