no message

This commit is contained in:
hellcat 2025-11-09 11:22:00 +08:00
parent 7641622325
commit 4d22315862
2 changed files with 4 additions and 32 deletions

View File

@ -248,38 +248,6 @@ final class Cron
(new Telegram())->send(0, $sMsg);
}
// public static function visitorCount(): void
// {
// $oVisitor = Visitor::select('from', DB::raw('count(*) as count'))
// ->groupBy('from')
// ->get();
//
// foreach ($oVisitor as $row) {
//
// $oCountVisitor = new CountVisitor();
// $oCountVisitor->from = $row->from;
// $oCountVisitor->count = $row->count;
// $oCountVisitor->date = date('Y-m-d', strtotime('-1 day'));
// $oCountVisitor->save();
//
// }
//
// Visitor::truncate();
//
// // tg报表
// $aCountVisitor = CountVisitor::where('date', date('Y-m-d', strtotime('-1 day')))->get()->toArray();
//
// $sTgReport = '';
// foreach ($aCountVisitor as $row) {
//
// $sTgReport .= $row["from"]."".$row["count"]."\n";
//
// }
//
// (new Telegram())->send(0, $sTgReport);
//
// }
// 限制帐户检测
public static function detectInactiveUser(): void

View File

@ -112,6 +112,10 @@ final class ReportUser
$iMoneyRate = 0;
foreach ($aData as $row) {
if (!$row['count_reg'] && !$row['count_pay']) {
continue;
}
if ($iTotalFromCount) {
$iFromRate = (int)(($row['count_from'] / $iTotalFromCount) * 100);
}