作者 lyh

gx查询排除独立白帽系统

@@ -367,6 +367,7 @@ class KeywordLogic extends BaseLogic @@ -367,6 +367,7 @@ class KeywordLogic extends BaseLogic
367 'project_id' => $this->user['project_id'], 367 'project_id' => $this->user['project_id'],
368 'type' => 1, 368 'type' => 1,
369 'uid' => 0, 369 'uid' => 0,
  370 + 'start_time'=>$this->param['start_time'],
370 'created_at' => date('Y-m-d H:i:s'), 371 'created_at' => date('Y-m-d H:i:s'),
371 'updated_at' => date('Y-m-d H:i:s') 372 'updated_at' => date('Y-m-d H:i:s')
372 ]; 373 ];
@@ -394,6 +395,9 @@ class KeywordLogic extends BaseLogic @@ -394,6 +395,9 @@ class KeywordLogic extends BaseLogic
394 $text = Common::deal_keywords($text); 395 $text = Common::deal_keywords($text);
395 preg_match_all('/\{[^{}]*\}/', $text, $matches); 396 preg_match_all('/\{[^{}]*\}/', $text, $matches);
396 $data = []; 397 $data = [];
  398 + $twoMonthsAgo = strtotime('-2 months');
  399 + $randomTimestamp = rand($twoMonthsAgo, time());
  400 + $randomDateTime = date('Y-m-d H:i:s', $randomTimestamp);
397 if (!empty($text)) { 401 if (!empty($text)) {
398 foreach ($matches[0] as $item) { 402 foreach ($matches[0] as $item) {
399 $item = str_replace("'", '"', $item); 403 $item = str_replace("'", '"', $item);
@@ -408,6 +412,7 @@ class KeywordLogic extends BaseLogic @@ -408,6 +412,7 @@ class KeywordLogic extends BaseLogic
408 'project_id' => $this->user['project_id'], 412 'project_id' => $this->user['project_id'],
409 'type' => 1, 413 'type' => 1,
410 'uid' => 0, 414 'uid' => 0,
  415 + 'start_time'=>$randomDateTime,
411 'created_at' => date('Y-m-d H:i:s'), 416 'created_at' => date('Y-m-d H:i:s'),
412 'updated_at' => date('Y-m-d H:i:s') 417 'updated_at' => date('Y-m-d H:i:s')
413 ]; 418 ];