实训附件问题

dev_daiao
daiao 5 years ago
parent 69d5fb5227
commit 74559ba1b4

@ -217,8 +217,10 @@ class AttachmentsController < ApplicationController
end
def conversion_container_id id, type
if type == 'Shixun'
if id.is_a?(String) && type == 'Shixun'
Shixun.find_by_identifier(id).id
else
id
end
end
end

Loading…
Cancel
Save