diff --git a/app/Services/Cron/ReportUmami.php b/app/Services/Cron/ReportUmami.php index ce29c382..3be72bc4 100755 --- a/app/Services/Cron/ReportUmami.php +++ b/app/Services/Cron/ReportUmami.php @@ -47,6 +47,8 @@ final class ReportUmami $endAt = (int) (microtime(true) * 1000); // 当前时间戳 (毫秒) $startAt = $endAt - (24 * 3600 * 1000); // 24小时前的时间戳 (毫秒) + $msg = "\n\n============= 📊 umami 统计 ==================="; + foreach ($websites as $site) { $siteId = $site['id'] ?? ''; @@ -71,7 +73,7 @@ final class ReportUmami // 计算跳出率 $bounceRate = $visits > 0 ? round(($bounces / $visits) * 100, 1) : 0; - $msg = "\n\n======= 📊 访客统计:{$domain} ==================="; + $msg .= "\n\n--------- {$domain} ---------"; $msg .= "\n- 今日:{$pageviews}"; $msg .= "\n- 昨日:{$pageviewsPrev}";