From 4fa4e2d19905bb26c477d7fcc3f616b1c6db9fcb Mon Sep 17 00:00:00 2001 From: daiao <35855898@qq.com> Date: Tue, 12 Mar 2019 16:04:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E6=8E=A5=E5=8F=A3=E9=87=8C=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=8C=87=E7=A4=BA=E7=82=B9=E5=86=85=E5=AE=B9=20?= =?UTF-8?q?=EF=BC=88=E5=90=8E=E7=AB=AF=E5=A2=9E=E5=8A=A0=E5=8F=82=E6=95=B0?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/ec_course_supports_controller.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/controllers/ec_course_supports_controller.rb b/app/controllers/ec_course_supports_controller.rb index d81782a8..337c183a 100644 --- a/app/controllers/ec_course_supports_controller.rb +++ b/app/controllers/ec_course_supports_controller.rb @@ -60,7 +60,12 @@ class EcCourseSupportsController < ApplicationController course_data << { name: name, top_relation: cs.top_relation, weigths: cs.weigths} end gs.ec_course_supports.count > max_support_count && max_support_count = gs.ec_course_supports.count - course_support_data << {sequence_num: sequence_num, ec_graduation_subitem_id: gs.id, course_data: course_data, num_total: gs.ec_course_supports.count, weights_total: weigths_sum} + course_support_data << {sequence_num: sequence_num, + sequence_title: gs.content, + ec_graduation_subitem_id: gs.id, + course_data: course_data, + num_total: gs.ec_course_supports.count, + weights_total: weigths_sum} end end render :json => {ec_year_id: @year.id,