update
This commit is contained in:
@ -58,7 +58,7 @@ class KeywordsController extends AbstractController
|
||||
public function monitorInsert(): \Psr\Http\Message\ResponseInterface
|
||||
{
|
||||
$keyword = $this->request->post('keyword');
|
||||
$ignoreUrl = $this->request->post('ignore_url', []);
|
||||
$ignoreUrl = $this->request->post('ignore_url');
|
||||
|
||||
$query = AppKeywordsMonitor::query()->where([
|
||||
['keyword', $keyword],
|
||||
@ -72,7 +72,7 @@ class KeywordsController extends AbstractController
|
||||
|
||||
$query->keyword = $keyword;
|
||||
|
||||
$ignoreUrl = array_filter(array_unique(explode(PHP_EOL, $ignoreUrl)));
|
||||
$ignoreUrl = array_filter(array_unique(explode(PHP_EOL, $ignoreUrl ?: [])));
|
||||
$query->ignore_url = json_encode($ignoreUrl);
|
||||
$query->save();
|
||||
|
||||
|
Reference in New Issue
Block a user