|
|
@ -108,10 +108,14 @@ class HomeworkCommonsController < ApplicationController
|
|
|
|
@all_member_count = student_works.size
|
|
|
|
@all_member_count = student_works.size
|
|
|
|
|
|
|
|
|
|
|
|
logger.info("###########______@homework.publish_time_________#{@homework.publish_time}")
|
|
|
|
logger.info("###########______@homework.publish_time_________#{@homework.publish_time}")
|
|
|
|
|
|
|
|
logger.info("-----------------------------------------------------")
|
|
|
|
|
|
|
|
|
|
|
|
if @homework.publish_time.blank? || (@homework.publish_time > Time.now)
|
|
|
|
if @homework.publish_time.blank? || (@homework.publish_time > Time.now)
|
|
|
|
|
|
|
|
logger.info("+++++++++++++++++#{@homework.publish_time}")
|
|
|
|
@student_works = []
|
|
|
|
@student_works = []
|
|
|
|
if (params[:format] == "xlsx") || (params[:format] == "zip")
|
|
|
|
if (params[:format] == "xlsx") || (params[:format] == "zip")
|
|
|
|
|
|
|
|
logger.info("++++++params[:format]params[:format]params[:format]params[:format]+++++++++++#{params[:format]}")
|
|
|
|
|
|
|
|
|
|
|
|
normal_status(-1,"作业未发布")
|
|
|
|
normal_status(-1,"作业未发布")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
else
|
|
|
|
else
|
|
|
|