问卷调整

chromesetting
cxt 5 years ago
parent 5eeef267e5
commit c88a998992

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

Loading…
Cancel
Save