update rules

This commit is contained in:
toom1996
2025-06-20 15:53:40 +08:00
parent 24c03e7ec1
commit b6a57a6df6

View File

@ -27,8 +27,8 @@ class ToolsController extends AbstractController
if ($keyword) { if ($keyword) {
$query = $keyword->first()?->toArray(); $query = $keyword->first()?->toArray();
if ($query) { if ($query) {
$ignoreUrl = AppKeywordsMonitor::formatQuery([])->where('id', $query['aid'])->first()?->toArray()['ignore_url'] ?? []; $ignoreUrl = AppKeywordsMonitor::formatQuery([])->where('id', $query['aid'])->first()?->toArray()['ignore_url'] ?? '[]';
$query['ignore_url'] = $ignoreUrl; $query['ignore_url'] = $ignoreUrl ?: '[]';
} }
return $this->response->json([ return $this->response->json([
'code' => 0, 'code' => 0,