编程作业提示信息
This commit is contained in:
parent
ce1da89e02
commit
d247109819
|
@ -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
|
|
@ -48,14 +48,14 @@ $(function(){
|
|||
//弹框
|
||||
var root_path = getRootPath();
|
||||
var forums_1_path = root_path + "/forums/1"
|
||||
var htmlvalue = "</br><div style='width:430px;text-align:center;margin:0 auto' >您的程序引发了不知名异常,请在公共贴吧提交您的代码进行意见反馈,我们处理后会立即联系您,谢谢!</div><div style='width:550px;text-align:center'><a target='_Blank' href="+forums_1_path+">点我进入反馈页面</a></div>";
|
||||
var htmlvalue = "</br><div style='width:550px;text-align:center'>由于目前大量用户正在测试,系统繁忙,请稍后再试。我们将尽快提升平台的处理能力,谢谢您的支持!</div></br><div style='width:67px; margin:0 auto; text-align:center'><a href='javascript:void(0);' class='Blue-btn' onclick='hideModal()'>确定</a></div>";
|
||||
pop_up_box(htmlvalue,580,30,50);
|
||||
|
||||
$('#test-program-btn').show();
|
||||
return;
|
||||
}
|
||||
else if (data.status==-3){
|
||||
var htmlvalue = "</br><div style='width:550px;text-align:center'>对不起,服务器繁忙请稍后再试!</div></br><div style='width:67px; margin:0 auto; text-align:center'><a href='javascript:void(0);' class='Blue-btn' onclick='hideModal()'>确定</a></div>";
|
||||
var htmlvalue = "</br><div style='width:550px;text-align:center'>由于目前大量用户正在测试,系统繁忙,请稍后再试。我们将尽快提升平台的处理能力,谢谢您的支持!</div></br><div style='width:67px; margin:0 auto; text-align:center'><a href='javascript:void(0);' class='Blue-btn' onclick='hideModal()'>确定</a></div>";
|
||||
pop_up_box(htmlvalue,580,30,50);
|
||||
$('#test-program-btn').show();
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue