diff --git a/app/controllers/helps_controller.rb b/app/controllers/helps_controller.rb index 145ac1bec..10a073684 100644 --- a/app/controllers/helps_controller.rb +++ b/app/controllers/helps_controller.rb @@ -26,14 +26,14 @@ class HelpsController < ApplicationController def feedback if params[:url].blank? - content = "

[#{params[:question_kind]}]

#{params[:description]}

" + content = "[#{params[:question_kind]}]
#{params[:description]}
" if params[:attachment_ids] params[:attachment_ids].each do |attachment_id| - content += "![](/api/attachments/#{attachment_id})\n" + content += "![](/api/attachments/#{attachment_id})
" end end else - content = "

[#{params[:question_kind]}]

问题页面网址:#{params[:url]}

#{params[:description]}" + content = "[#{params[:question_kind]}]
问题页面网址:#{params[:url]}
#{params[:description]}" end ActiveRecord::Base.transaction do