From 074ffec4780df4307e78458337005e0670fb0d1b Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Fri, 23 Dec 2022 09:02:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcBook.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcBook.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/SrcBook.js b/SrcBook.js index 111d9683..fc75db62 100644 --- a/SrcBook.js +++ b/SrcBook.js @@ -11,7 +11,7 @@ function yiji() { col_type: 'icon_5' }, { - title: "书架", + title: "布局", url: "hiker://collection", pic_url: 'https://lanmeiguojiang.com/tubiao/more/109.png', col_type: 'icon_5' @@ -35,7 +35,7 @@ function yiji() { col_type: 'icon_5' }, { - title: "直播", + title: "编辑", url: $("hiker://empty#noRecordHistory##noHistory#").rule(() => { require(config.依赖.match(/http(s)?:\/\/.*\//)[0] + 'SrcLive.js'); Live(); @@ -58,6 +58,19 @@ function yiji() { col_type: "blank_block" }) } + var shelffile = "hiker://files/rules/Src/Read/bookshelf.js"; + var shelf=fetch(cfgfile); + if(shelf != ""){ + eval("var bookshelf=" + shelf+ ";"); + }else{ + var bookshelf= []; + } + if(bookshelf.length==0){ + d.push({ + title: '↻书架是空的', + col_type: "rich_text" + }); + } } setResult(d); } \ No newline at end of file