Pre Merge pull request !523 from 御宅男(YznCMS官方)/1.x-dev

pull/523/MERGE
御宅男(YznCMS官方) 2026-05-11 02:44:07 +00:00 committed by Gitee
commit 20d49ff105
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -507,7 +507,7 @@ class Backend extends Controller
}
$order = [];
foreach ($orderby as $k => $v) {
$order[$v[0]] = $v[1];
$order[$v[0]] = strtoupper($v[1] ?? '') === 'DESC' ? 'DESC' : 'ASC';
}
$field = $field ? $field : 'name';