update rules
This commit is contained in:
@ -177,7 +177,12 @@ class KeywordsController extends AbstractController
|
|||||||
#[RequestMapping(path: 'monitor/export-all', methods: 'get')]
|
#[RequestMapping(path: 'monitor/export-all', methods: 'get')]
|
||||||
public function monitorExportAll()
|
public function monitorExportAll()
|
||||||
{
|
{
|
||||||
$res = AppKeywordsMonitorResult::query()->orderBy('aid', 'desc')->get()->toArray();
|
$res = AppKeywordsMonitorResult::query()
|
||||||
|
->where('is_delete', 0)
|
||||||
|
->where('created_at', '>', date('Y-m-d H:i:s', strtotime('today')))
|
||||||
|
->orderBy('aid', 'desc')
|
||||||
|
->get()
|
||||||
|
->toArray();
|
||||||
|
|
||||||
foreach ($res as &$v) {
|
foreach ($res as &$v) {
|
||||||
$v['keyword'] = AppKeywordsMonitorTask::find($v['aid'])->keyword;
|
$v['keyword'] = AppKeywordsMonitorTask::find($v['aid'])->keyword;
|
||||||
|
@ -71,6 +71,7 @@ class ToolsController extends AbstractController
|
|||||||
['aid', $aid],
|
['aid', $aid],
|
||||||
['url', $value['mu']],
|
['url', $value['mu']],
|
||||||
['is_delete', 0],
|
['is_delete', 0],
|
||||||
|
['created_at', '>', date('Y-m-d H:i:s', strtotime('today'))]
|
||||||
])->first()?->toArray();
|
])->first()?->toArray();
|
||||||
|
|
||||||
// 如果这个负面存过了就不管了
|
// 如果这个负面存过了就不管了
|
||||||
|
Reference in New Issue
Block a user