dev_forum
SylorHuang 5 years ago
parent 6b73cb617b
commit 441dcf54e7

@ -106,9 +106,15 @@ class HomeworkCommonsController < ApplicationController
student_works = @homework.all_works
@all_member_count = student_works.size
if @homework.publish_time.blank? || (@homework.publish_time > Time.now)
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