|
...
|
...
|
@@ -367,6 +367,7 @@ class KeywordLogic extends BaseLogic |
|
|
|
'project_id' => $this->user['project_id'],
|
|
|
|
'type' => 1,
|
|
|
|
'uid' => 0,
|
|
|
|
'start_time'=>$this->param['start_time'],
|
|
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
|
|
];
|
|
...
|
...
|
@@ -394,6 +395,9 @@ class KeywordLogic extends BaseLogic |
|
|
|
$text = Common::deal_keywords($text);
|
|
|
|
preg_match_all('/\{[^{}]*\}/', $text, $matches);
|
|
|
|
$data = [];
|
|
|
|
$twoMonthsAgo = strtotime('-2 months');
|
|
|
|
$randomTimestamp = rand($twoMonthsAgo, time());
|
|
|
|
$randomDateTime = date('Y-m-d H:i:s', $randomTimestamp);
|
|
|
|
if (!empty($text)) {
|
|
|
|
foreach ($matches[0] as $item) {
|
|
|
|
$item = str_replace("'", '"', $item);
|
|
...
|
...
|
@@ -408,6 +412,7 @@ class KeywordLogic extends BaseLogic |
|
|
|
'project_id' => $this->user['project_id'],
|
|
|
|
'type' => 1,
|
|
|
|
'uid' => 0,
|
|
|
|
'start_time'=>$randomDateTime,
|
|
|
|
'created_at' => date('Y-m-d H:i:s'),
|
|
|
|
'updated_at' => date('Y-m-d H:i:s')
|
|
|
|
];
|
...
|
...
|
|