fix: pc 产品,附件,视频搜索去除首尾空格
This commit is contained in:
@@ -50,7 +50,7 @@ class Attachment extends Common
|
||||
'support_platform',
|
||||
'attach',
|
||||
])
|
||||
->withSearch(['name'], ['name' => !empty($param['keyword']) ? $param['keyword'] : null])
|
||||
->withSearch(['name'], ['name' => !empty($param['keyword']) ? trim($param['keyword']) : null])
|
||||
->language($this->lang_id)
|
||||
->category(!empty($param['id']) ? $param['id'] : $categorys[0]['id']??null)
|
||||
->order(['sort' => 'asc', 'id' => 'desc'])
|
||||
@@ -111,7 +111,7 @@ class Attachment extends Common
|
||||
'video',
|
||||
'link'
|
||||
])
|
||||
->withSearch(['name'], ['name' => !empty($param['keyword']) ? $param['keyword'] : null])
|
||||
->withSearch(['name'], ['name' => !empty($param['keyword']) ? trim($param['keyword']) : null])
|
||||
->language($this->lang_id)
|
||||
->category(!empty($param['id']) ? $param['id'] : $video_categorys[0]['id']??null)
|
||||
->order(['sort' => 'asc', 'id' => 'desc'])
|
||||
|
||||
Reference in New Issue
Block a user