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