|
...
|
...
|
@@ -33,7 +33,7 @@ class GoogleSearchController extends BaseController |
|
|
|
]);
|
|
|
|
//查询数据库查看是否有数据
|
|
|
|
$googleSearchModel = new GoogleSearch();
|
|
|
|
$searchInfo = $googleSearchModel->read(['type'=>$this->map['search'],'project_id'=>$this->user['project_id'],'date'=>['<=',date('Y-m-d', strtotime('-7 days'))]],['id']);
|
|
|
|
$searchInfo = $googleSearchModel->read(['type'=>$this->map['search'],'project_id'=>$this->user['project_id'],'date'=>['>=',date('Y-m-d', strtotime('-7 days'))]],['id']);
|
|
|
|
if($searchInfo === false){
|
|
|
|
//获取当前项目域名
|
|
|
|
$domain = parse_url($this->user['domain'], PHP_URL_HOST);
|
...
|
...
|
|