dev_forum
SylorHuang 5 years ago
parent 441dcf54e7
commit 0e68cc0e4c

@ -106,15 +106,10 @@ class HomeworkCommonsController < ApplicationController
student_works = @homework.all_works
@all_member_count = student_works.size
logger.info("@@@@@@@_____________@homework.publish_time______________##{@homework.publish_time}")
logger.info("@@@@@@@_____________@homework.publish_time > Time.now______________##{@homework.publish_time > Time.now}")
if @homework.publish_time.nil? || (@homework.publish_time > Time.now)
logger.info("@@@@@@@_____________1111111111_____________#11111111111")
@student_works = []
if (params[:format] == "xlsx") || (params[:format] == "zip")
logger.info("@@@@@@@_____________22222222_____________#2222222221")
normal_status(-1,"作业未发布")
end
else

Loading…
Cancel
Save