From 72e032980b751009779c870a8ed7a71d6b4b7484 Mon Sep 17 00:00:00 2001 From: LiuEnder Date: Tue, 10 Mar 2026 12:43:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=B3=A8=E9=87=8A=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GoldPrice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GoldPrice.js b/GoldPrice.js index 1244c4f..70aee36 100644 --- a/GoldPrice.js +++ b/GoldPrice.js @@ -287,7 +287,7 @@ function checkSpecialTargets(data, lastPrice, currentPrice) { // 如果没有上一笔价格,则退化为接近检测,避免首次运行完全不触发 if (lastPrice === undefined || lastPrice === null) { - const tol = 0.2; // 首次检测仍保留一个很小的容差 + const tol = 0.2; // 首次检测仍保留一个很小的容差,建议范围:0.1-0.5 for (const t of targets) { if (Math.abs(currentPrice - t) <= tol) return t; }