Compare commits
2 Commits
32f5f52c5e
...
b50333e558
| Author | SHA1 | Date | |
|---|---|---|---|
| b50333e558 | |||
| c4b53a7b3f |
@@ -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
|
||||
|
||||
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user