refactor: 修复文章导出添加时间筛选bug
This commit is contained in:
@@ -225,7 +225,7 @@ class Article
|
||||
{
|
||||
$server = request()->server();
|
||||
$image_host = $server['REQUEST_SCHEME'] . "://" . $server['SERVER_NAME'] . config('filesystem.disks.public.url') . '/';
|
||||
$param = request()->param(['title', 'category_id', 'created_at']);
|
||||
$param = request()->param(['title', 'category_id', 'release_time']);
|
||||
$data = ArticleModel::field([
|
||||
'*',
|
||||
'image',
|
||||
@@ -237,7 +237,7 @@ class Article
|
||||
})
|
||||
->language(request()->lang_id)
|
||||
->categoryNullable($param['category_id']??null)
|
||||
->withSearch(['title', 'created_at'], [
|
||||
->withSearch(['title', 'release_time'], [
|
||||
'title' => $param['title']??null,
|
||||
'release_time' => !empty($param['release_time'])?explode(',', $param['release_time']):null
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user