|
|
|
@ -525,3 +525,29 @@ function mobile_friendly(){
|
|
|
|
|
$('#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!!');
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
}
|