From eb939372f0a0fb52d2417dd1875ab268f2f02422 Mon Sep 17 00:00:00 2001
From: Chavy <chavyleung@gmail.com>
Date: Wed, 6 Mar 2024 17:04:50 +0800
Subject: [PATCH] =?UTF-8?q?fix(boxjs):=20=E5=85=A8=E5=B1=80=E9=9D=99?=
 =?UTF-8?q?=E9=BB=98=E7=8A=B6=E6=80=81=E4=B8=8B=E6=B2=A1=E6=9C=89=E5=8F=91?=
 =?UTF-8?q?=E5=87=BA=E6=9F=A5=E8=AF=A2=E8=AD=A6=E5=91=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 box/chavy.boxjs.js              |  9 ++++++++-
 box/release/box.release.json    | 16 ++++++++++++++++
 box/release/box.release.tf.json | 16 ++++++++++++++++
 chavy.box.js                    |  9 ++++++++-
 4 files changed, 48 insertions(+), 2 deletions(-)

diff --git a/box/chavy.boxjs.js b/box/chavy.boxjs.js
index e70d513f7..20284ce6e 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.14.1'
+$.version = '0.14.2'
 $.versionType = 'beta'
 
 // 发出的请求需要需要 Surge、QuanX 的 rewrite
@@ -226,6 +226,10 @@ async function handleQuery() {
     )
 
     if (!isMuteQueryAlert) {
+      // 关闭静默状态
+      const _isMute = $.isMute
+      $.isMute = false
+
       $.msg(
         $.name,
         '❗️发现有脚本或人正在读取你的数据',
@@ -235,6 +239,9 @@ async function handleQuery() {
           '2. 在 BoxJs 的页面 (侧栏) 中 "不显示查询警告"'
         ].join('\n')
       )
+
+      // 还原静默状态
+      $.isMute = _isMute
     }
 
     $.log(
diff --git a/box/release/box.release.json b/box/release/box.release.json
index 904a47091..3ad0e6222 100644
--- a/box/release/box.release.json
+++ b/box/release/box.release.json
@@ -1,5 +1,21 @@
 {
   "releases": [
+    {
+      "version": "0.14.2",
+      "tags": ["beta"],
+      "author": "@chavyleung",
+      "msg": "fix(boxjs): 全局静默状态下没有发出查询警告",
+      "notes": [
+        {
+          "name": "修复",
+          "descs": ["全局静默状态下没有发出查询警告"]
+        },
+        {
+          "name": "感谢",
+          "descs": ["@MuTu888 反馈"]
+        }
+      ]
+    },
     {
       "version": "0.14.1",
       "tags": ["beta"],
diff --git a/box/release/box.release.tf.json b/box/release/box.release.tf.json
index f5bfdd2be..54460fa7e 100644
--- a/box/release/box.release.tf.json
+++ b/box/release/box.release.tf.json
@@ -1,5 +1,21 @@
 {
   "releases": [
+    {
+      "version": "0.14.2",
+      "tags": ["beta"],
+      "author": "@chavyleung",
+      "msg": "fix(boxjs): 全局静默状态下没有发出查询警告",
+      "notes": [
+        {
+          "name": "修复",
+          "descs": ["全局静默状态下没有发出查询警告"]
+        },
+        {
+          "name": "感谢",
+          "descs": ["@MuTu888 反馈"]
+        }
+      ]
+    },
     {
       "version": "0.14.1",
       "tags": ["beta"],
diff --git a/chavy.box.js b/chavy.box.js
index e70d513f7..20284ce6e 100644
--- a/chavy.box.js
+++ b/chavy.box.js
@@ -3,7 +3,7 @@ const $ = new Env('BoxJs')
 // 为 eval 准备的上下文环境
 const $eval_env = {}
 
-$.version = '0.14.1'
+$.version = '0.14.2'
 $.versionType = 'beta'
 
 // 发出的请求需要需要 Surge、QuanX 的 rewrite
@@ -226,6 +226,10 @@ async function handleQuery() {
     )
 
     if (!isMuteQueryAlert) {
+      // 关闭静默状态
+      const _isMute = $.isMute
+      $.isMute = false
+
       $.msg(
         $.name,
         '❗️发现有脚本或人正在读取你的数据',
@@ -235,6 +239,9 @@ async function handleQuery() {
           '2. 在 BoxJs 的页面 (侧栏) 中 "不显示查询警告"'
         ].join('\n')
       )
+
+      // 还原静默状态
+      $.isMute = _isMute
     }
 
     $.log(