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;