|
...
|
...
|
@@ -30,7 +30,12 @@ class GoogleLinkController extends BaseController |
|
|
|
if(empty($lists['list'])){
|
|
|
|
$linkService = new GoogleLinkService();
|
|
|
|
$data = $linkService->linkPageData($this->user['domain'],$this->user['project_id']);
|
|
|
|
$lists = paginateArray($data,$this->page,$this->row);
|
|
|
|
if(is_array($data)){
|
|
|
|
$lists = paginateArray($data,$this->page,$this->row);
|
|
|
|
}else{
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($data, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
$this->response('success',Code::SUCCESS,[]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$lists['y_total'] = $linkModel->counts(['status'=>1,'project_id'=>$this->user['project_id']]);
|
|
|
|
$lists['n_total'] = $linkModel->counts(['status'=>0,'project_id'=>$this->user['project_id']]);
|
...
|
...
|
|