|
...
|
...
|
@@ -30,8 +30,8 @@ class GeoQuestionResLogic extends BaseLogic |
|
|
|
*/
|
|
|
|
public function getCount(){
|
|
|
|
$total = $this->model->counts(['project_id'=>$this->user['project_id']]);
|
|
|
|
$type_1 = $this->model->counts(['type'=>1,'project_id'=>$this->user['project_id']]);
|
|
|
|
$type_2 = $this->model->counts(['type'=>2,'project_id'=>$this->user['project_id']]);
|
|
|
|
$type_1 = $this->model->counts(['type'=>$this->model::BRAND_TYPE,'project_id'=>$this->user['project_id']]);
|
|
|
|
$type_2 = $this->model->counts(['type'=>$this->model::MARKETING_TYPE,'project_id'=>$this->user['project_id']]);
|
|
|
|
return $this->success(['total'=>$total,'type_1'=>$type_1,'type_2'=>$type_2]);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|