fix: correct know file issues
Some checks are pending
Docker Build and Publish / build (push) Waiting to run

This commit is contained in:
xboard 2025-01-09 02:06:32 +08:00
parent 9369fcec3f
commit d5c24ed3d1
3 changed files with 5 additions and 6 deletions

View File

@ -82,16 +82,15 @@ class StatController extends Controller
}
$statistics = $query->orderBy('record_at', 'DESC')
->get()
->toArray();
->get();
$summary = [
'paid_total' => 0,
'paid_count' => 0,
'commission_total' => 0,
'commission_count' => 0,
'start_date' => $request->input('start_date', date('Y-m-d', strtotime('-30 days'))),
'end_date' => $request->input('end_date', date('Y-m-d')),
'start_date' => $request->input('start_date', date('Y-m-d', $statistics->last()->record_at)),
'end_date' => $request->input('end_date', date('Y-m-d', $statistics->first()->record_at)),
'avg_paid_amount' => 0,
'avg_commission_amount' => 0
];

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long