dev_forum
SylorHuang 6 years ago
parent 9ee6fee20a
commit 2c472f44a9

@ -106,9 +106,11 @@ class HomeworkCommonsController < ApplicationController
student_works = @homework.all_works
@all_member_count = student_works.size
logger.info("##########__________@homework.publish_time______________#############{@homework.publish_time}")
if @homework.publish_time.blank? || (@homework.publish_time > Time.now)
@student_works = []
if params[:format] == "xlsx" || params[:format] == "zip"
logger.info("##########__________params[:format]______________#############{params[:format]}")
normal_status(-1,"作业未发布")
end
else

Loading…
Cancel
Save