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