Merge branch 'dev_aliyun' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_hs
jingquan huang 5 years ago
commit 34e1870a37

@ -181,7 +181,7 @@ class CoursesController < ApplicationController
extra_params = Hash.new
extra_params[:school_id] = @school.id
if @course.is_end && (course_params[:end_date].blank? || course_params[:end_date].to_date > Date.today)
if @course.is_end && (course_params[:end_date].blank? || course_params[:end_date].to_date >= Date.today)
extra_params[:is_end] = 0
elsif !@course.is_end && !course_params[:end_date].blank? && course_params[:end_date].to_date < Date.today
extra_params[:is_end] = 1

Loading…
Cancel
Save