diff --git a/Plugin.php b/Plugin.php index 856cf7e..e27a31e 100644 --- a/Plugin.php +++ b/Plugin.php @@ -26,7 +26,7 @@ class Access_Plugin implements Typecho_Plugin_Interface Helper::addRoute("access_track_gif", "/access/log/track.gif", "Access_Action", 'writeLogs'); Helper::addRoute("access_migration", "/access/migration", "Access_Action", 'migration'); Helper::addRoute("access_logs", "/access/logs", "Access_Action", 'logs'); - Helper::addRoute('access_statistic_view', '/access/statistic/view', 'Access_Action', 'statistic'); + Helper::addRoute('access_statistic', '/access/statistic', 'Access_Action', 'statistic'); Typecho_Plugin::factory('Widget_Archive')->beforeRender = array('Access_Plugin', 'backend'); Typecho_Plugin::factory('Widget_Archive')->footer = array('Access_Plugin', 'frontend'); Typecho_Plugin::factory('admin/footer.php')->end = array('Access_Plugin', 'adminFooter'); diff --git a/page/routes/overview/index.js b/page/routes/overview/index.js index 76cb306..d091a53 100644 --- a/page/routes/overview/index.js +++ b/page/routes/overview/index.js @@ -150,7 +150,7 @@ printRefererTable = function (target, data) { // 拉取统计数据 getStatisticData = function (rpc, params = null, callback) { $.ajax({ - url: "/access/statistic/view", + url: "/access/statistic", method: "get", dataType: "json", data: { rpc: rpc, ...params },