|
|
|
@ -27,9 +27,11 @@ class HelpsController < ApplicationController
|
|
|
|
|
def feedback
|
|
|
|
|
if params[:url].blank?
|
|
|
|
|
content = "<p>[#{params[:question_kind]}]</p></p>#{params[:description]}"
|
|
|
|
|
if params[:attachment_ids]
|
|
|
|
|
params[:attachment_ids].each do |attachment_id|
|
|
|
|
|
content += "![](/api/attachments/#{attachment_id})↵"
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
else
|
|
|
|
|
content = "<p>[#{params[:question_kind]}]</p><p>问题页面网址:#{params[:url]}</p>#{params[:description]}"
|
|
|
|
|
end
|
|
|
|
|