From d2471098194ee86b1180a0ebe34febcffbc48e1b Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 14 Oct 2016 16:44:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E7=A8=8B=E4=BD=9C=E4=B8=9A=E6=8F=90?= =?UTF-8?q?=E7=A4=BA=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tasks/resource_publish.rake | 4 ++-- public/javascripts/homework.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/tasks/resource_publish.rake b/lib/tasks/resource_publish.rake index df8fefda1..2df0c6145 100644 --- a/lib/tasks/resource_publish.rake +++ b/lib/tasks/resource_publish.rake @@ -3,9 +3,9 @@ namespace :resource_publish do desc "start publish resource" task :publish => :environment do - attachments = Attachment.where("publish_time <= '#{Date.today}'") + attachments = Attachment.where("publish_time = '#{Date.today}'") attachments.each do |attachment| - attachment.update_column('is_publish', 1) if attachment.is_publish == 0 + attachment.update_column('is_publish', 1) end end end \ No newline at end of file diff --git a/public/javascripts/homework.js b/public/javascripts/homework.js index 1578d72df..b5db42df9 100644 --- a/public/javascripts/homework.js +++ b/public/javascripts/homework.js @@ -48,14 +48,14 @@ $(function(){ //弹框 var root_path = getRootPath(); var forums_1_path = root_path + "/forums/1" - var htmlvalue = "
您的程序引发了不知名异常,请在公共贴吧提交您的代码进行意见反馈,我们处理后会立即联系您,谢谢!
点我进入反馈页面
"; + var htmlvalue = "
由于目前大量用户正在测试,系统繁忙,请稍后再试。我们将尽快提升平台的处理能力,谢谢您的支持!

确定
"; pop_up_box(htmlvalue,580,30,50); $('#test-program-btn').show(); return; } else if (data.status==-3){ - var htmlvalue = "
对不起,服务器繁忙请稍后再试!

确定
"; + var htmlvalue = "
由于目前大量用户正在测试,系统繁忙,请稍后再试。我们将尽快提升平台的处理能力,谢谢您的支持!

确定
"; pop_up_box(htmlvalue,580,30,50); $('#test-program-btn').show(); return;