|
...
|
...
|
@@ -236,7 +236,11 @@ class NewsLogic extends BaseLogic |
|
|
|
if ($v == 3) {
|
|
|
|
$data[$k] = $this->model->where(['project_id' => $this->user['project_id']])->count();
|
|
|
|
} else {
|
|
|
|
$data[$k] = $this->model->where(['status' => $v, 'project_id' => $this->user['project_id']])->count();
|
|
|
|
if($v == 0){
|
|
|
|
$data[$k] = $this->model->formatQuery(['status' => ['in',[0,3]], 'project_id' => $this->user['project_id']])->count();
|
|
|
|
}else{
|
|
|
|
$data[$k] = $this->model->where(['status' => $v, 'project_id' => $this->user['project_id']])->count();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return $this->success($data);
|
...
|
...
|
|