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