mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-21 02:20:54 +08:00
[admin] filter improve & fix ad link
This commit is contained in:
@@ -11,7 +11,7 @@ class BaseRepository
|
||||
|
||||
protected function getSortFieldAndType(array $params): array
|
||||
{
|
||||
$field = $params['sort_field'] ?? 'id';
|
||||
$field = !empty($params['sort_field']) ? $params['sort_field'] : 'id';
|
||||
$type = 'desc';
|
||||
if (!empty($params['sort_type']) && Str::startsWith($params['sort_type'], 'asc')) {
|
||||
$type = 'asc';
|
||||
|
||||
Reference in New Issue
Block a user