2 Commits

Author SHA1 Message Date
b50333e558 refactor: 修改网站配置输出项接口 2025-03-12 15:27:06 +08:00
c4b53a7b3f refactor: 修改横幅项分页接口排序 2025-03-12 14:50:33 +08:00
2 changed files with 2 additions and 1 deletions

View File

@@ -37,6 +37,7 @@ class BannerItem
'created_at' => !empty($param['created_at']) ? explode(',', $param['created_at']) : null
])
->bannerId($param['banner_id'] ?? null)
->order(['sort' => 'asc', 'id' => 'desc'])
->paginate([
'list_rows' => $param['size'] ?? 10,
'page' => $param['page'] ?? 1

View File

@@ -99,7 +99,7 @@ class SiteConfig
];
if (isset($match[3])) {
$item['linkage_names'] = array_map(function ($it) {
return trim(trim($it), "'");
return str_replace(['"', "'"], '', trim($it));
}, explode(',', $match[3]));
}
$linkage_names = array_merge($linkage_names, $item['linkage_names']);