mirror of
https://github.com/kokororin/typecho-plugin-Access.git
synced 2025-03-14 03:40:21 +08:00
chore: rename statistic rpc url
This commit is contained in:
parent
92f6e3ab49
commit
67b1d6ea5f
@ -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');
|
||||
|
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user