友联随机访问地址

This commit is contained in:
1152958806@qq.com 2023-07-12 00:59:42 +08:00
parent 3f0474dc36
commit fc21164ec0
5 changed files with 14 additions and 7 deletions

View File

@ -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: 友链鱼塘页面(钓鱼)

View File

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

View File

@ -41,7 +41,7 @@
<div id="random-post"></div>
<script type="text/javascript">
var fdataUser = {
apiurl: GLOBAL_CONFIG.source.fcircleApiurl,
apiurl: [[${theme.config.fcircle.apiurl}]],
defaultFish: 500,
hungryFish: 500,
}
@ -60,7 +60,7 @@
<script>
let UserConfig = {
// 填写你的api地址
private_api_url: GLOBAL_CONFIG.source.fcircleApiurl,
private_api_url: [[${theme.config.fcircle.apiurl}]],
// 点击加载更多时一次最多加载几篇文章默认10
page_turning_number: 12,
// 头像加载失败时,默认头像地址

View File

@ -64,7 +64,7 @@
<div id="random-post"></div>
<script type="text/javascript">
var fdataUser = {
apiurl: GLOBAL_CONFIG.source.fcircleApiurl,
apiurl: [[${theme.config.fcircle.apiurl}]],
defaultFish: 500,
hungryFish: 500,
}

View File

@ -184,7 +184,9 @@
helloText: [[${#strings.listSplit(theme.config.sidebar.profile.helloText, ',')}]],
assetsLink: [[${assets_link}]],
source: {
fcircleApiurl: [[${theme.config.fcircle.apiurl}]],
links:{
randomfriendurl: [[${theme.config.link.randomfriendurl}]],
},
jQuery: 'https://lf6-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.6.0/jquery.min.js',
justifiedGallery: {
js: 'https://lf3-cdn-tos.bytecdntp.com/cdn/expire-1-M/justifiedGallery/3.8.1/js/jquery.justifiedGallery.min.js',