diff --git a/src/Services/Cron.php b/src/Services/Cron.php index cf122b0e..3950b400 100755 --- a/src/Services/Cron.php +++ b/src/Services/Cron.php @@ -24,6 +24,7 @@ use App\Models\CountVisitor; use App\Models\CountUser; use App\Services\TomTool\TgSendFormat; use App\Services\IM\Telegram; +use App\Services\Tg\ReportUser; use App\Utils\Tools; use DateTime; use Exception; @@ -151,7 +152,6 @@ final class Cron $aAllMix = array_merge($aVisitorMix, $aRegMix, $aUserMix); - foreach ($aAllMix as $k => $v) { $oCountUserModel = new CountUser(); @@ -169,11 +169,11 @@ final class Cron } - - var_dump($aUserMix); - exit; - Visitor::truncate(); + + $sMsg = (new ReportUser())->ByDay(1); + + (new Telegram())->send(0, $sMsg); } // public static function visitorCount(): void