main
Jing Li 2024-04-24 13:34:21 +08:00
parent c4dbeaaf22
commit 317979606a
1 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ class CockpitController extends Controller
->whereBetween('date', [$startAt->toDateString(), $endAt->toDateString()])
->groupBy(['month', 'ledger_item_type_id'])
->get()
->keyBy('month');
->groupBy('month');
for ($i=0; $i < $months; $i++) {
$month = $startAt->format('Y-m');
@ -194,7 +194,7 @@ class CockpitController extends Controller
return [
'lottery_types' => $lotteryTypes->map(function ($lotteryType) {
return [
'id' => $lotteryType->id,
'id' => $lotteryType->key,
'name' => $lotteryType->name,
];
}),