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