From 1a7aea39ba6cfa622e7d1fd2d969102b9289dc20 Mon Sep 17 00:00:00 2001 From: GideonSenku Date: Mon, 15 Jul 2024 16:36:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(boxjs):=20=E8=AE=A2=E9=98=85=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- box/chavy.boxjs.js | 4 ++-- box/release/box.release.json | 2 +- box/release/box.release.tf.json | 2 +- chavy.box.js | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/box/chavy.boxjs.js b/box/chavy.boxjs.js index 62f05b607..309d748e5 100644 --- a/box/chavy.boxjs.js +++ b/box/chavy.boxjs.js @@ -3,7 +3,7 @@ const $ = new Env('BoxJs') // 为 eval 准备的上下文环境 const $eval_env = {} -$.version = '0.19.4' +$.version = '0.19.5' $.versionType = 'beta' // 发出的请求需要需要 Surge、QuanX 的 rewrite @@ -927,7 +927,7 @@ function reloadAppSubCache(url) { subcaches[url] = $.toObj(resp.body) subcaches[url].updateTime = new Date() // 仅缓存存在 id 的订阅 - $.setjson(subcaches.filter(e => !!e.id), $.KEY_app_subCaches) + $.setjson(subcaches.filter(e => !!subcaches?.[url]?.id), $.KEY_app_subCaches) $.log(`更新订阅, 成功! ${url}`) } catch (e) { $.logErr(e) diff --git a/box/release/box.release.json b/box/release/box.release.json index c0410ca18..f47e985b6 100644 --- a/box/release/box.release.json +++ b/box/release/box.release.json @@ -1,7 +1,7 @@ { "releases": [ { - "version": "0.19.4", + "version": "0.19.5", "tags": ["beta"], "author": "@GideonSenku", "msg": "fix(boxjs): 订阅缓存问题", diff --git a/box/release/box.release.tf.json b/box/release/box.release.tf.json index 6feb8ebaa..851cf6445 100644 --- a/box/release/box.release.tf.json +++ b/box/release/box.release.tf.json @@ -1,7 +1,7 @@ { "releases": [ { - "version": "0.19.4", + "version": "0.19.5", "tags": ["beta"], "author": "@GideonSenku", "msg": "fix(boxjs): 订阅缓存问题", diff --git a/chavy.box.js b/chavy.box.js index 62f05b607..309d748e5 100644 --- a/chavy.box.js +++ b/chavy.box.js @@ -3,7 +3,7 @@ const $ = new Env('BoxJs') // 为 eval 准备的上下文环境 const $eval_env = {} -$.version = '0.19.4' +$.version = '0.19.5' $.versionType = 'beta' // 发出的请求需要需要 Surge、QuanX 的 rewrite @@ -927,7 +927,7 @@ function reloadAppSubCache(url) { subcaches[url] = $.toObj(resp.body) subcaches[url].updateTime = new Date() // 仅缓存存在 id 的订阅 - $.setjson(subcaches.filter(e => !!e.id), $.KEY_app_subCaches) + $.setjson(subcaches.filter(e => !!subcaches?.[url]?.id), $.KEY_app_subCaches) $.log(`更新订阅, 成功! ${url}`) } catch (e) { $.logErr(e)