From 23e07790531e5ff1e33c371cb821ac225b850d6f Mon Sep 17 00:00:00 2001 From: xiaoxiaoqiong Date: Thu, 24 Jun 2021 14:48:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A1=E7=AE=97=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/ec_courses_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/ec_courses_controller.rb b/app/controllers/ec_courses_controller.rb index bc7383b3..cdf039b3 100644 --- a/app/controllers/ec_courses_controller.rb +++ b/app/controllers/ec_courses_controller.rb @@ -850,6 +850,7 @@ class EcCoursesController < ApplicationController logger.info("###############ec_graduation_subitem: #{ec_graduation_subitem.id}") # 课程体系 ec_course_support = ec_graduation_subitem.ec_course_supports.where(:ec_course_id => @ec_course.id).first + ec_course_support = EcCourseSupport.where(:ec_course_id => @ec_course.id).first if ec_course_support.blank? logger.info("###############################ec_course_support:#{ec_course_support.try(:id)}") weight = ec_course_support.try(:weigths) || 0 # position