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