refactor: banner添加语言区分查询

This commit is contained in:
2025-03-26 10:56:14 +08:00
parent 9d66ed4da9
commit a4c2a5e3fc
3 changed files with 78 additions and 34 deletions

View File

@@ -31,6 +31,7 @@ class Banner
->withSearch(['name'], [
'name' => $param['name'] ?? null
])
->language(request()->lang_id)
->order(['sort' => 'asc', 'id' => 'desc'])
->paginate([
'list_rows' => $param['size'],