no message

This commit is contained in:
hellcat 2025-03-30 21:03:38 +08:00
parent 0be377dcfc
commit 742070e7fc

View File

@ -67,13 +67,13 @@ final class Cron
public static function userCount(): void
{
$sPrevDate = date("Y-m-d", strtotime("-2 day"));
$sPrevDateStart = date("Y-m-d 00:00:00", strtotime("-2 day"));
$sPrevDateEnd = date("Y-m-d 23:59:59", strtotime("-2 day"));
$sPrevDate = date("Y-m-d", strtotime("-1 day"));
$sPrevDateStart = date("Y-m-d 00:00:00", strtotime("-1 day"));
$sPrevDateEnd = date("Y-m-d 23:59:59", strtotime("-1 day"));
$sPrevTimeStart = strtotime($sPrevDateStart);
$sPrevTimeEnd = strtotime($sPrevDateEnd);
$sPrevDate30 = date("Y-m-d", strtotime("-30 day"));
echo "<pre>";
// echo "<pre>";
//// 访客统计 start
$aVisitorCount = Visitor::select('from', DB::raw('count(*) as count'))
@ -159,19 +159,19 @@ final class Cron
$oCountUserModel->from = $k;
$oCountUserModel->count_from = $aVisitorMix[$k]['count'] ?? 0;
$oCountUserModel->count_reg = $aRegMix[$k]['count'] ?? 0;
$oCountUserModel->count_pay = $UserMix[$k]['pay_count'] ?? 0;
$oCountUserModel->count_pay_new = $UserMix[$k]['pay_count_new'] ?? 0;
$oCountUserModel->count_pay_old = $UserMix[$k]['pay_count_old'] ?? 0;
$oCountUserModel->count_money = $UserMix[$k]['money_count'] ?? 0;
$oCountUserModel->count_money_new = $UserMix[$k]['money_count_new'] ?? 0;
$oCountUserModel->count_money_old = $UserMix[$k]['money_count_old'] ?? 0;
$oCountUserModel->count_pay = $aUserMix[$k]['pay_count'] ?? 0;
$oCountUserModel->count_pay_new = $aUserMix[$k]['pay_count_new'] ?? 0;
$oCountUserModel->count_pay_old = $aUserMix[$k]['pay_count_old'] ?? 0;
$oCountUserModel->count_money = $aUserMix[$k]['money_count'] ?? 0;
$oCountUserModel->count_money_new = $aUserMix[$k]['money_count_new'] ?? 0;
$oCountUserModel->count_money_old = $aUserMix[$k]['money_count_old'] ?? 0;
$oCountUserModel->date = $sPrevDate;
$r = $oCountUserModel->save();
}
var_dump($r);
var_dump($aUserMix);
exit;
Visitor::truncate();