dev_forum
SylorHuang 5 years ago
parent 74e613e804
commit dfe784a051

@ -1297,7 +1297,7 @@ class ExercisesController < ApplicationController
if @user_course_identity > Course::ASSISTANT_PROFESSOR
tip_exception(403,"无权限操作")
else
if @export_ex_users.exercise_user_committed.size == 0
if (@exercise_users_size == 0) ||( @export_ex_users&.exercise_user_committed.size == 0)
normal_status(-1,"暂无用户提交")
else
get_export_users(@exercise,@course,@export_ex_users)

Loading…
Cancel
Save