|
|
|
@ -38,7 +38,7 @@ class HomeworkCommonsController < ApplicationController
|
|
|
|
|
tip_exception("子目录id有误") if !@category.present?
|
|
|
|
|
@homework_commons = @homework_commons.where(course_second_category_id: params[:category])
|
|
|
|
|
elsif @homework_type == 4
|
|
|
|
|
@homework_commons = @homework_commons.where(course_second_category_id: 0)
|
|
|
|
|
@homework_commons = @homework_commons
|
|
|
|
|
end
|
|
|
|
|
@all_count = @homework_commons.size
|
|
|
|
|
|
|
|
|
|