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