更新
This commit is contained in:
parent
0a0ff61a25
commit
2e9d42b9c5
@ -10,7 +10,7 @@ require_once('function.php');
|
|||||||
require_once('parse.php');
|
require_once('parse.php');
|
||||||
|
|
||||||
/* 主题内置开放API */
|
/* 主题内置开放API */
|
||||||
require_once('api.php');
|
require_once('route.php');
|
||||||
|
|
||||||
/* 插件方法 */
|
/* 插件方法 */
|
||||||
require_once('factory.php');
|
require_once('factory.php');
|
||||||
@ -37,7 +37,8 @@ function themeInit($self)
|
|||||||
|
|
||||||
/* 主题开放API 路由规则 */
|
/* 主题开放API 路由规则 */
|
||||||
$path_info = $self->request->getPathinfo();
|
$path_info = $self->request->getPathinfo();
|
||||||
if ($path_info === "/joe/api") {
|
|
||||||
|
if ($path_info == "/joe/api") {
|
||||||
switch ($self->request->routeType) {
|
switch ($self->request->routeType) {
|
||||||
case 'aside_ranking':
|
case 'aside_ranking':
|
||||||
_getRanking($self);
|
_getRanking($self);
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
if (localStorage.getItem('data-night')) document.querySelector("html").setAttribute("data-night", "night")
|
if (localStorage.getItem('data-night')) document.querySelector("html").setAttribute("data-night", "night")
|
||||||
window.Joe = {
|
window.Joe = {
|
||||||
LIVE2D: '<?php $this->options->JLive2d() ?>',
|
LIVE2D: '<?php $this->options->JLive2d() ?>',
|
||||||
|
// BASE_API: '<?php echo $this->options->rewrite == 0 ? '/index.php/joe/api' : '/joe/api' ?>',
|
||||||
BASE_API: '/index.php/joe/api',
|
BASE_API: '/index.php/joe/api',
|
||||||
DYNAMIC_BACKGROUND: '<?php $this->options->JDynamic_Background() ?>',
|
DYNAMIC_BACKGROUND: '<?php $this->options->JDynamic_Background() ?>',
|
||||||
WALLPAPER_BACKGROUND_PC: '<?php $this->options->JWallpaper_Background_PC() ?>',
|
WALLPAPER_BACKGROUND_PC: '<?php $this->options->JWallpaper_Background_PC() ?>',
|
||||||
|
Loading…
Reference in New Issue
Block a user