From f451aea6438c01e92986eef82d88de69936db3fa Mon Sep 17 00:00:00 2001 From: hotyue <52734432+hotyue@users.noreply.github.com> Date: Fri, 17 Apr 2026 05:32:09 +0000 Subject: [PATCH] =?UTF-8?q?fix(core):=20=E4=BC=98=E5=8C=96=E6=88=98?= =?UTF-8?q?=E6=8A=A5=E6=97=A5=E5=BF=97=E6=8F=90=E5=8F=96=E9=80=BB=E8=BE=91?= =?UTF-8?q?=EF=BC=8C=E6=94=B9=E7=94=A8=E7=B2=BE=E7=A1=AE=E6=88=AA=E6=96=AD?= =?UTF-8?q?=E6=9B=BF=E4=BB=A3=E5=85=A8=E9=87=8F=E6=89=AB=E6=8F=8F=EF=BC=8C?= =?UTF-8?q?=E5=A4=A7=E5=B9=85=E9=99=8D=E4=BD=8E=20I/O=20=E6=B6=88=E8=80=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/tg_report.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/tg_report.sh b/core/tg_report.sh index 91b35c0..fedaaf8 100755 --- a/core/tg_report.sh +++ b/core/tg_report.sh @@ -89,8 +89,8 @@ case "$REGION_CODE" in *) FLAG="🌐" ;; esac -# 3. 截取过去 24 小时的日志 -LOG_CONTENT=$(find "$LOG_FILE" -mtime -1 -exec cat {} \; 2>/dev/null) +# 3. 截取过去 24 小时的日志 (每天48次轮询,保留最新 1000 行足以覆盖单日战报) +LOG_CONTENT=$(tail -n 1000 "$LOG_FILE" 2>/dev/null) if [ -z "$LOG_CONTENT" ]; then read -r -d '' MSG <