fix - bug
This commit is contained in:
@ -20,12 +20,16 @@ class ToolsController extends AbstractController
|
||||
#[RequestMapping(path:'get-query-keyword', methods:'get')]
|
||||
public function getQueryKeyword(): \Psr\Http\Message\ResponseInterface
|
||||
{
|
||||
$keyword = AppKeywordsMonitorTask::formatQuery(['created_at'])
|
||||
$keyword = AppKeywordsMonitorTask::query()
|
||||
->where('queried_at', '<=', strtotime('-2 hours'))
|
||||
->where('is_delete', 0);
|
||||
|
||||
if ($keyword) {
|
||||
$query = $keyword->first()?->toArray();
|
||||
if ($query) {
|
||||
$ignoreUrl = AppKeywordsMonitor::formatQuery([])->where('id', $query['aid'])->first()?->toArray()['ignore_url'] ?? [];
|
||||
$query['ignore_url'] = $ignoreUrl;
|
||||
}
|
||||
return $this->response->json([
|
||||
'code' => 0,
|
||||
'data' => $query
|
||||
|
Reference in New Issue
Block a user