修正注释。

This commit is contained in:
LiuEnder
2026-03-10 12:43:31 +08:00
parent 245625ae7d
commit 72e032980b

View File

@@ -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;
}