html类实训评测接口更改

dev_forum
daiao 6 years ago
parent d5840e1f4f
commit 51c844f4a2

@ -19,7 +19,7 @@ if @type == "image"
end
elsif @type == "html"
json.iframe_src html_show_users_path(:path => "#{@user_path}/#{@user_picture[0]}")
json.iframe_src File.read("#{@user_path}/#{@user_picture[0]}")&.html_safe
elsif @type == "txt"
json.contents @contents.html_safe
elsif @type =="qrcode"

Loading…
Cancel
Save