|
|
@ -156,7 +156,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)[:end_time]
|
|
|
|
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
|
|
|
|
end
|
|
|
|
end
|
|
|
|