This commit is contained in:
杜恒 2021-02-03 17:58:16 +08:00
parent 0a0ff61a25
commit 2e9d42b9c5
3 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,7 @@ require_once('function.php');
require_once('parse.php');
/* 主题内置开放API */
require_once('api.php');
require_once('route.php');
/* 插件方法 */
require_once('factory.php');
@ -37,7 +37,8 @@ function themeInit($self)
/* 主题开放API 路由规则 */
$path_info = $self->request->getPathinfo();
if ($path_info === "/joe/api") {
if ($path_info == "/joe/api") {
switch ($self->request->routeType) {
case 'aside_ranking':
_getRanking($self);

View File

@ -3,6 +3,7 @@
if (localStorage.getItem('data-night')) document.querySelector("html").setAttribute("data-night", "night")
window.Joe = {
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',
DYNAMIC_BACKGROUND: '<?php $this->options->JDynamic_Background() ?>',
WALLPAPER_BACKGROUND_PC: '<?php $this->options->JWallpaper_Background_PC() ?>',