From f9b7f78fe877ca301f1fa11f7c54e4d788d6d3e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=81=8C=E7=B3=96=E5=8C=85=E5=AD=90?= Date: Sat, 21 Mar 2026 03:32:22 +0800 Subject: [PATCH] =?UTF-8?q?api=E5=9C=B0=E5=9D=80=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BAv2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/yilia/layout/layout.ejs | 4 ++-- themes/yilia/source-src/js/photo-wall.js | 2 +- themes/yilia/source-src/js/slider.js | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/themes/yilia/layout/layout.ejs b/themes/yilia/layout/layout.ejs index 30c309c..ef5e83f 100644 --- a/themes/yilia/layout/layout.ejs +++ b/themes/yilia/layout/layout.ejs @@ -2,8 +2,8 @@ <%- partial('_partial/head') %> -
-
+
+
<%- partial('_partial/left-col', null, {cache: !config.relative_link}) %> <%- partial('_partial/live2d') %>
diff --git a/themes/yilia/source-src/js/photo-wall.js b/themes/yilia/source-src/js/photo-wall.js index 92bae45..741781f 100644 --- a/themes/yilia/source-src/js/photo-wall.js +++ b/themes/yilia/source-src/js/photo-wall.js @@ -27,7 +27,7 @@ function loadMoreItems(step) { scrollLock = true //加载过程中锁定滚动加载 loadTip.style.display = 'block' // 滚动到底部时调用 - axios.get(`${themeConfig.root}api/v1/common/photos`, {params: {start:totalIndex, limit:step}}).then(res => { + axios.get(`${themeConfig.root}api/v2/common/photos`, {params: {start:totalIndex, limit:step}}).then(res => { var itemContainer = document.createElement('div') for(let index = 0 ; index { + axios.get(window.themeConfig.root + 'api/v2/common/search', {params}).then(res => { this.fullTextSearch.isLoading = false fullTextSearchTimer = null let result = res.data @@ -225,7 +225,7 @@ function handleSearch(searchItems) { async function welcomeMessage() { let now = new Date().getHours() - return axios.get(`${window.themeConfig.root}api/v1/common/config/waifu_tip`).then(res => { + return axios.get(`${window.themeConfig.root}api/v2/common/config/waifu_tip`).then(res => { let textTimes = res.data let text = null Array.prototype.sort.call(textTimes, (item1, item2) => { @@ -273,7 +273,7 @@ const waifuTools = { }, 'tools.chart'() { // 一言 - axios.get(`${window.themeConfig.root}api/v1/common/hitokoto?length=40&format=json`).then(res => { + axios.get(`${window.themeConfig.root}api/v2/common/hitokoto?length=40&format=json`).then(res => { this.showMessage(res.data.hitokoto + (res.data.from?`  ——${res.data.from}`:'')) }) },