From 086804688ef78bff1764c9f73af9e47293ca5159 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Tue, 26 Nov 2019 15:54:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=AB=AF=E7=9A=84?= =?UTF-8?q?=E6=84=8F=E8=A7=81=E5=8F=8D=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/helps_controller.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/helps_controller.rb b/app/controllers/helps_controller.rb index a32aba62f..8d58663f6 100644 --- a/app/controllers/helps_controller.rb +++ b/app/controllers/helps_controller.rb @@ -27,8 +27,10 @@ class HelpsController < ApplicationController def feedback if params[:url].blank? content = "
[#{params[:question_kind]}]
#{params[:description]}" - params[:attachment_ids].each do |attachment_id| - content += "![](/api/attachments/#{attachment_id})↵" + if params[:attachment_ids] + params[:attachment_ids].each do |attachment_id| + content += "![](/api/attachments/#{attachment_id})↵" + end end else content = "[#{params[:question_kind]}]
问题页面网址:#{params[:url]}
#{params[:description]}"