no message
This commit is contained in:
parent
7641622325
commit
4d22315862
@ -249,38 +249,6 @@ final class Cron
|
|||||||
(new Telegram())->send(0, $sMsg);
|
(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
|
public static function detectInactiveUser(): void
|
||||||
{
|
{
|
||||||
|
|||||||
@ -112,6 +112,10 @@ final class ReportUser
|
|||||||
$iMoneyRate = 0;
|
$iMoneyRate = 0;
|
||||||
foreach ($aData as $row) {
|
foreach ($aData as $row) {
|
||||||
|
|
||||||
|
if (!$row['count_reg'] && !$row['count_pay']) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ($iTotalFromCount) {
|
if ($iTotalFromCount) {
|
||||||
$iFromRate = (int)(($row['count_from'] / $iTotalFromCount) * 100);
|
$iFromRate = (int)(($row['count_from'] / $iTotalFromCount) * 100);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user