sonar评测取最后一个附件

pre_develop
guange 6 years ago
parent 00e4170593
commit 2f9fb67479

@ -647,7 +647,7 @@ class StudentWorkController < ApplicationController
uid: "#{work.user.user_extensions.student_id}",
downloadUrl: ''
}
attachment = work.attachments.first
attachment = work.attachments.last
if attachment
o[:downloadUrl] = "https://#{Setting.host_name}/"+download_named_attachment_path(attachment.id, attachment.filename)
end

Loading…
Cancel
Save