From be0ccc11b63689a837b2ac96f0f3ec24f66b35ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B9=E8=AF=9A=E8=AF=9A?= Date: Wed, 20 Mar 2019 14:55:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/bootstrap/cache_url.php | 4 ++-- application/views/bootstrap3/refresh_amp_urls.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/application/views/bootstrap/cache_url.php b/application/views/bootstrap/cache_url.php index 013933ab..815f8460 100644 --- a/application/views/bootstrap/cache_url.php +++ b/application/views/bootstrap/cache_url.php @@ -4,7 +4,6 @@ function batch_update_cache(url, index) { var msg_obj="#cache" + index; $(msg_obj).html("\u7a0d\u7b49..."); - $.ajax({ type: "post", dataType: "json", @@ -32,7 +31,8 @@ function batch_update_cache(url, index) { function create_cache_data(index){ if ($('#cache_url' + index).length > 0) { if ($('#cache' + index).html() != '\u66f4\u65b0\u9759\u6001\u9875\u9762\u6210\u529f\uff01') { - setTimeout(batch_update_cache($('#cache_url' + index).html(),index),5000); + url=$('#cache_url' + index).html(); + setTimeout("batch_update_cache('"+url+"',"+index+")",5000); } } } diff --git a/application/views/bootstrap3/refresh_amp_urls.php b/application/views/bootstrap3/refresh_amp_urls.php index 053ebcf3..b82cac48 100644 --- a/application/views/bootstrap3/refresh_amp_urls.php +++ b/application/views/bootstrap3/refresh_amp_urls.php @@ -67,7 +67,7 @@ if ($('#cache' + index).html() == '手动管理,不会自动更新') { //手动更新的项目跳过 create_amp_data(++index); } else { - setTimeout(batch_update_amp(index),5000); + setTimeout("batch_update_amp("+index+")",5000); } } }