update application/common/library/SelectPage.php.

$selectpageFields如果是字符串 并且有空格的时候 无法匹配
protected $selectpageFields = 'id, username,nickname';

Signed-off-by: 御宅男(YznCMS官方) <530765310@qq.com>
pull/526/head
御宅男(YznCMS官方) 2026-05-23 14:49:42 +00:00 committed by Gitee
parent 542771bbf8
commit b7b5d9abf2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

View File

@ -440,7 +440,7 @@ class SelectPage
return $this->selectpageFields;
}
if ($this->selectpageFields && $this->selectpageFields !== '*') {
return explode(',', $this->selectpageFields);
return array_map('trim', explode(',', $this->selectpageFields));
}
return [];
}