From c2625f33a42e667a0047f81c75ae9c1a5bddfef1 Mon Sep 17 00:00:00 2001
From: src48597962 <48597962@qq.com>
Date: Tue, 11 Apr 2023 22:56:15 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcBookCase.js'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
SrcBookCase.js | 64 ++++++++++++++++++++++++--------------------------
1 file changed, 31 insertions(+), 33 deletions(-)
diff --git a/SrcBookCase.js b/SrcBookCase.js
index 438105d8..e01bafd1 100644
--- a/SrcBookCase.js
+++ b/SrcBookCase.js
@@ -54,40 +54,38 @@ function bookCase() {
})
Julist.forEach(it => {
- if(getMyVar("SrcJuBookType","全部")=="全部" || getMyVar("SrcJuBookType","全部")==item.type){
- try{
- let params = JSON.parse(it.params);
- let stype = JSON.parse(params.params).stype;
- if(getMyVar("SrcJuBookType")==stype || !getMyVar("SrcJuBookType")){
- let name = JSON.parse(params.params).name;
- let sname = JSON.parse(params.params).sname;
- let extraData = it.extraData?JSON.parse(it.extraData):{};
- let last = extraData.lastChapterStatus?extraData.lastChapterStatus:"";
- let mask = it.lastClick?it.lastClick.split('@@')[0]:"";
- let col = Juconfig["bookCase_col_type"] || 'movie_1_vertical_pic';
- d.push({
- title: col=='movie_1_vertical_pic'?name + "\n\n‘‘’’💠 "+stype+" | "+(sname||"")+"":name,
- pic_url: it.picUrl,
- desc: col=='movie_1_vertical_pic'?"🕓 "+mask+"\n\n🔘 "+last:last,
- url: $("hiker://empty#immersiveTheme##autoCache#").rule(() => {
- require(config.依赖);
- erji();
- putMyVar('SrcBookCase','1');
- }),
- col_type: col,
- extra: {
- pageTitle: name,
- name: name,
- img: it.picUrl,
- stype: stype,
- lineVisible: false,
- cls: "caselist"
- }
- })
- }
- }catch(e){
- log("书架加载异常>"+e.message);
+ try{
+ let params = JSON.parse(it.params);
+ let stype = JSON.parse(params.params).stype;
+ if(getMyVar("SrcJuBookType")==stype || getMyVar("SrcJuBookType","全部")=="全部"){
+ let name = JSON.parse(params.params).name;
+ let sname = JSON.parse(params.params).sname;
+ let extraData = it.extraData?JSON.parse(it.extraData):{};
+ let last = extraData.lastChapterStatus?extraData.lastChapterStatus:"";
+ let mask = it.lastClick?it.lastClick.split('@@')[0]:"";
+ let col = Juconfig["bookCase_col_type"] || 'movie_1_vertical_pic';
+ d.push({
+ title: col=='movie_1_vertical_pic'?name + "\n\n‘‘’’💠 "+stype+" | "+(sname||"")+"":name,
+ pic_url: it.picUrl,
+ desc: col=='movie_1_vertical_pic'?"🕓 "+mask+"\n\n🔘 "+last:last,
+ url: $("hiker://empty#immersiveTheme##autoCache#").rule(() => {
+ require(config.依赖);
+ erji();
+ putMyVar('SrcBookCase','1');
+ }),
+ col_type: col,
+ extra: {
+ pageTitle: name,
+ name: name,
+ img: it.picUrl,
+ stype: stype,
+ lineVisible: false,
+ cls: "caselist"
+ }
+ })
}
+ }catch(e){
+ log("书架加载异常>"+e.message);
}
})
d.push({