From e459fd3d87ee532c43c7d2e06e85686a282d4933 Mon Sep 17 00:00:00 2001 From: cmliu Date: Thu, 22 Jan 2026 13:31:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0sendMessage=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E4=B8=AD=E7=9A=84=E8=AF=B7=E6=B1=82=E7=94=A8=E9=87=8F?= =?UTF-8?q?=E8=AE=A1=E7=AE=97=EF=BC=8C=E4=BD=BF=E7=94=A8=E6=9C=80=E5=A4=A7?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E9=87=8F=E6=9B=BF=E4=BB=A3=E5=9B=BA=E5=AE=9A?= =?UTF-8?q?=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_worker.js b/_worker.js index cd9abd7..2f06cda 100644 --- a/_worker.js +++ b/_worker.js @@ -1249,7 +1249,7 @@ async function sendMessage(BotToken, ChatID, 日志内容, config_JSON) { `🔍 路径:${请求URL.pathname + 请求URL.search}\n` + `🤖 UA:${日志内容.UA}\n` + `📅 时间:${请求时间}\n` + - `${config_JSON.CF.Usage.success ? `📊 请求用量:${config_JSON.CF.Usage.total}/100000 ${((config_JSON.CF.Usage.total / 100000) * 100).toFixed(2)}%\n` : ''}`; + `${config_JSON.CF.Usage.success ? `📊 请求用量:${config_JSON.CF.Usage.total}/${config_JSON.CF.Usage.max} ${((config_JSON.CF.Usage.total / config_JSON.CF.Usage.max) * 100).toFixed(2)}%\n` : ''}`; const url = `https://api.telegram.org/bot${BotToken}/sendMessage?chat_id=${ChatID}&parse_mode=HTML&text=${encodeURIComponent(msg)}`; return fetch(url, {