|
|
|
@ -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
|
|
|
|
|