|
|
@ -156,7 +156,7 @@ class PollVotesController < ApplicationController
|
|
|
|
if question_max_choices > 0 && user_vote_count > question_max_choices
|
|
|
|
if question_max_choices > 0 && user_vote_count > question_max_choices
|
|
|
|
normal_status(-1,"多选题答案超过最大限制!")
|
|
|
|
normal_status(-1,"多选题答案超过最大限制!")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
elsif (poll_user.present? && poll_user&.commit_status) || poll_user_status == 3
|
|
|
|
elsif (poll_user.present? && poll_user.commit_status == 1) || poll_user_status == 3
|
|
|
|
normal_status(-1,"已提交/已结束的问卷不允许修改!")
|
|
|
|
normal_status(-1,"已提交/已结束的问卷不允许修改!")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|