From 8dec50fc6db393eba6b81c6a638cca31b551bb47 Mon Sep 17 00:00:00 2001 From: xiaomlove <1939737565@qq.com> Date: Sat, 31 Jan 2026 20:06:43 +0700 Subject: [PATCH] fix bonus-log --- app/Filament/Resources/User/BonusLogResource.php | 8 ++++---- public/bonus-log.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Filament/Resources/User/BonusLogResource.php b/app/Filament/Resources/User/BonusLogResource.php index 100de559..31b95514 100644 --- a/app/Filament/Resources/User/BonusLogResource.php +++ b/app/Filament/Resources/User/BonusLogResource.php @@ -36,10 +36,10 @@ class BonusLogResource extends Resource return __('admin.sidebar.bonus_log'); } - public static function getModelLabel(): string - { - return sprintf('%s(%s)', get_model_label(static::getModel()), __('bonus-log.exclude_seeding_bonus')); - } +// public static function getModelLabel(): string +// { +// return sprintf('%s(%s)', get_model_label(static::getModel()), __('bonus-log.exclude_seeding_bonus')); +// } public static function form(Schema $schema): Schema { diff --git a/public/bonus-log.php b/public/bonus-log.php index d29d946e..d924cf3f 100644 --- a/public/bonus-log.php +++ b/public/bonus-log.php @@ -77,9 +77,9 @@ JS; \Nexus\Nexus::js($resetJs, 'footer', false); $rep = new \App\Repositories\BonusRepository(); -$total = $rep->getCount($uid, $category, $businessType); +$total = $rep->getCount($category, $uid, $businessType); list($pagertop, $pagerbottom, $limit, $offset, $pageSize, $page) = pager(50, $total, "$pagerParam&"); -$list = $rep->getList($uid, $category, $businessType, $page + 1, $pageSize); +$list = $rep->getList($category, $uid, $businessType, $page + 1, $pageSize); begin_main_frame(); print($filterForm); print("");