From 00e4a6a0a826550e476b6c9613cb08aa05e4e9c3 Mon Sep 17 00:00:00 2001 From: cyc Date: Wed, 27 Nov 2019 16:23:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=B7=BB=E5=8A=A0cdn?= =?UTF-8?q?=E6=B8=85=E7=90=86=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/views/bootstrap/footer.php | 23 +++++++++++++++++++++++ application/views/bootstrap/header.php | 1 + js/information-system.min.js | 26 ++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) diff --git a/application/views/bootstrap/footer.php b/application/views/bootstrap/footer.php index 96bca214..4c797134 100644 --- a/application/views/bootstrap/footer.php +++ b/application/views/bootstrap/footer.php @@ -30,7 +30,30 @@ + + + diff --git a/application/views/bootstrap/header.php b/application/views/bootstrap/header.php index 4e979185..89b44b16 100644 --- a/application/views/bootstrap/header.php +++ b/application/views/bootstrap/header.php @@ -109,6 +109,7 @@ + diff --git a/js/information-system.min.js b/js/information-system.min.js index a54ed951..280f5291 100644 --- a/js/information-system.min.js +++ b/js/information-system.min.js @@ -524,4 +524,30 @@ function mobile_friendly(){ $("#mobile_friendly_status").html(html); $('#btn-mobile-friendly').button('reset'); }); +} +function updateCdnCache(url, msg_obj){ + if (msg_obj == "") {} else { + $("#" + msg_obj).html("\u7a0d\u7b49...") + } + $.ajax({ + type: "post", + dataType: "json", + url: "/akamai/ccu_v3.php", + data: { + "url": url + }, + success: function(json,Status) { + //console.log(json.msg); + if(json.msg == 'success'){ + $("#" + msg_obj).html('cdn缓存更新成功!'); + }else{ + $("#" + msg_obj).html('cdn缓存更新失败!'); + } + }, + error:function(json,responseText){ + console.log(json); + console.log(responseText); + $("#" + msg_obj).html('cdn更新失败,请联系cyc!!'); + } + }) } \ No newline at end of file