From c97e882d2b5e7f59c296571e53d426cede262fd6 Mon Sep 17 00:00:00 2001 From: cxt <853663049@qq.com> Date: Sun, 30 Jun 2019 10:58:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/application_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 753746e5..672b3c66 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -6613,7 +6613,7 @@ def update_shixun_work_status homework compelete_status = 1 end end - if setting.publish_time && setting.publish_time < Time.now && setting_time.end_time + if setting_time.publish_time && setting_time.publish_time < Time.now && setting_time.end_time if setting_time.end_time > Time.now work.update_attributes(:work_status => 1, :late_penalty => 0, :commit_time => myshixun.updated_at, :update_time => myshixun.updated_at, :myshixun_id => myshixun.id, :compelete_status => compelete_status) else