chore: rename statistic rpc url

This commit is contained in:
Emil Zhai 2022-12-07 07:19:44 +00:00
parent 92f6e3ab49
commit 67b1d6ea5f
No known key found for this signature in database
GPG Key ID: 780B385DB72F1EBD
2 changed files with 2 additions and 2 deletions

View File

@ -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');

View File

@ -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 },