|
@@ -27,6 +27,7 @@ class GoogleLinkController extends BaseController |
|
@@ -27,6 +27,7 @@ class GoogleLinkController extends BaseController |
|
27
|
$linkModel = new GoogleLink();
|
27
|
$linkModel = new GoogleLink();
|
|
28
|
$this->map['project_id'] = $this->user['project_id'];
|
28
|
$this->map['project_id'] = $this->user['project_id'];
|
|
29
|
$this->map['status'] = 1;
|
29
|
$this->map['status'] = 1;
|
|
|
|
30
|
+ $this->map['created_at'] = ['<=', date('Y-m-d 00:00:00', strtotime('-7 days'))];
|
|
30
|
$lists = $linkModel->lists($this->map,$this->page,$this->row,'id',['url','moz_da','status','url_domian','google_search','date','project_id','domain']);
|
31
|
$lists = $linkModel->lists($this->map,$this->page,$this->row,'id',['url','moz_da','status','url_domian','google_search','date','project_id','domain']);
|
|
31
|
if(empty($lists['list'])){
|
32
|
if(empty($lists['list'])){
|
|
32
|
$linkService = new GoogleLinkService();
|
33
|
$linkService = new GoogleLinkService();
|
|
@@ -34,7 +35,7 @@ class GoogleLinkController extends BaseController |
|
@@ -34,7 +35,7 @@ class GoogleLinkController extends BaseController |
|
34
|
if(is_array($data)){
|
35
|
if(is_array($data)){
|
|
35
|
$lists = paginateArray($data,$this->page,$this->row);
|
36
|
$lists = paginateArray($data,$this->page,$this->row);
|
|
36
|
}else{
|
37
|
}else{
|
|
37
|
- $this->response('success',Code::SUCCESS,[]);
|
38
|
+ $this->response('success');
|
|
38
|
}
|
39
|
}
|
|
39
|
}
|
40
|
}
|
|
40
|
$lists['y_total'] = $linkModel->counts(['status'=>1,'project_id'=>$this->user['project_id']]);
|
41
|
$lists['y_total'] = $linkModel->counts(['status'=>1,'project_id'=>$this->user['project_id']]);
|