|
|
@ -30,8 +30,7 @@ class ZipdownController < ApplicationController
|
|
|
|
if file_count > 0
|
|
|
|
if file_count > 0
|
|
|
|
zipfile = zip_bid bid
|
|
|
|
zipfile = zip_bid bid
|
|
|
|
else
|
|
|
|
else
|
|
|
|
render file: 'public/no_file_found.html'
|
|
|
|
zipfile = {:message => "no file"}
|
|
|
|
return
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
elsif params[:obj_class] == "HomeworkCommon"
|
|
|
|
elsif params[:obj_class] == "HomeworkCommon"
|
|
|
|
homework = HomeworkCommon.find params[:obj_id]
|
|
|
|
homework = HomeworkCommon.find params[:obj_id]
|
|
|
@ -41,8 +40,7 @@ class ZipdownController < ApplicationController
|
|
|
|
if file_count > 0
|
|
|
|
if file_count > 0
|
|
|
|
zipfile = zip_homework_common homework
|
|
|
|
zipfile = zip_homework_common homework
|
|
|
|
else
|
|
|
|
else
|
|
|
|
render file: 'public/no_file_found.html'
|
|
|
|
zipfile = {:message => "no file"}
|
|
|
|
return
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
else
|
|
|
|
else
|
|
|
|
logger.error "[ZipDown#assort] ===> #{params[:obj_class]} unKown !!"
|
|
|
|
logger.error "[ZipDown#assort] ===> #{params[:obj_class]} unKown !!"
|
|
|
|