fix bonus-log

This commit is contained in:
xiaomlove
2026-01-31 20:06:43 +07:00
parent 1e997e411c
commit 8dec50fc6d
2 changed files with 6 additions and 6 deletions
@@ -36,10 +36,10 @@ class BonusLogResource extends Resource
return __('admin.sidebar.bonus_log'); return __('admin.sidebar.bonus_log');
} }
public static function getModelLabel(): string // public static function getModelLabel(): string
{ // {
return sprintf('%s(%s)', get_model_label(static::getModel()), __('bonus-log.exclude_seeding_bonus')); // return sprintf('%s(%s)', get_model_label(static::getModel()), __('bonus-log.exclude_seeding_bonus'));
} // }
public static function form(Schema $schema): Schema public static function form(Schema $schema): Schema
{ {
+2 -2
View File
@@ -77,9 +77,9 @@ JS;
\Nexus\Nexus::js($resetJs, 'footer', false); \Nexus\Nexus::js($resetJs, 'footer', false);
$rep = new \App\Repositories\BonusRepository(); $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($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(); begin_main_frame();
print($filterForm); print($filterForm);
print("<table id='bonus-log-table' width='100%' cellpadding='5'>"); print("<table id='bonus-log-table' width='100%' cellpadding='5'>");