|
|
@ -155,7 +155,7 @@ class Poll < ApplicationRecord
|
|
|
|
# 问卷已截止时学生的答题状态需要考虑问卷的状态
|
|
|
|
# 问卷已截止时学生的答题状态需要考虑问卷的状态
|
|
|
|
if poll_status > 2
|
|
|
|
if poll_status > 2
|
|
|
|
# 问卷如果还是继续答题状态则自动提交
|
|
|
|
# 问卷如果还是继续答题状态则自动提交
|
|
|
|
if user_status = 0
|
|
|
|
if user_status == 0
|
|
|
|
poll_end_time = get_poll_times(user.id,false)
|
|
|
|
poll_end_time = get_poll_times(user.id,false)
|
|
|
|
poll_answer_user.first.update_attributes!(:commit_status => 1, :end_at => poll_end_time)
|
|
|
|
poll_answer_user.first.update_attributes!(:commit_status => 1, :end_at => poll_end_time)
|
|
|
|
user_status = 1
|
|
|
|
user_status = 1
|
|
|
|