From fc21164ec06b68a02ed18f684fd3860c7d7a47b6 Mon Sep 17 00:00:00 2001 From: "1152958806@qq.com" <1152958806@qq.com> Date: Wed, 12 Jul 2023 00:59:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8B=E8=81=94=E9=9A=8F=E6=9C=BA=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings.yaml | 9 +++++++-- templates/assets/zhheo/blogex.js | 2 +- templates/fcircle.html | 4 ++-- templates/links.html | 2 +- templates/modules/head.html | 4 +++- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/settings.yaml b/settings.yaml index e24760ea..df7c09c4 100644 --- a/settings.yaml +++ b/settings.yaml @@ -977,6 +977,11 @@ spec: name: bigTitle label: 大标题 value: 我和我的小伙伴们 + - $formkit: url + name: randomfriendurl + value: "https://moments.0206.ink/randomfriend" + label: 随机访问地址 + help: 注意格式 (你的鱼塘token地址 + randomfriend) - group: fcircle label: 友链鱼塘 @@ -1011,10 +1016,10 @@ spec: placeholder: 请输入跳转 url - $formkit: url name: apiurl - value: "https://moments.0206.ink/" + value: "`https://moments.0206.ink/`" label: token地址 placeholder: 请输入token地址 - help: 注意格式 (https://moments.0206.ink/) + help: 注意格式 (`token地址`) - $formkit: radio name: fcircleRandomFriendsEnable label: 友链鱼塘页面(钓鱼) diff --git a/templates/assets/zhheo/blogex.js b/templates/assets/zhheo/blogex.js index 9147d363..bd3f597d 100644 --- a/templates/assets/zhheo/blogex.js +++ b/templates/assets/zhheo/blogex.js @@ -358,7 +358,7 @@ document.addEventListener('scroll', btf.throttle(function () { //友链随机传送 function travelling() { - var fetchUrl = GLOBAL_CONFIG.source.fcircleApiurl +"randomfriend" + var fetchUrl = GLOBAL_CONFIG.source.links.randomfriendurl fetch(fetchUrl) .then(res => res.json()) .then(json => { diff --git a/templates/fcircle.html b/templates/fcircle.html index 6962e5b9..f32b46b2 100644 --- a/templates/fcircle.html +++ b/templates/fcircle.html @@ -41,7 +41,7 @@