作者 李宇航

合并分支 'lyh-server' 到 'master'

gx



查看合并请求 !1787
@@ -27,7 +27,7 @@ class GoogleLinkController extends BaseController @@ -27,7 +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 + $this->map['date'] = ['<=', date('Y-m-d 00:00:00', strtotime('-7 days'))];
31 $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']);
32 if(empty($lists['list'])){ 32 if(empty($lists['list'])){
33 $linkService = new GoogleLinkService(); 33 $linkService = new GoogleLinkService();
@@ -88,8 +88,7 @@ class GoogleLinkService @@ -88,8 +88,7 @@ class GoogleLinkService
88 public function saveLink($data,$project_id,$domain){ 88 public function saveLink($data,$project_id,$domain){
89 $saveData = []; 89 $saveData = [];
90 foreach ($data as $val){ 90 foreach ($data as $val){
91 - $timestamp = strtotime($val['created_at']);  
92 - $date = date('Y-m-d 00:00:00', $timestamp ?? time()); 91 + $date = date('Y-m-d 00:00:00', time());
93 if($val['status'] != 1){ 92 if($val['status'] != 1){
94 continue; 93 continue;
95 } 94 }