|
...
|
...
|
@@ -29,9 +29,10 @@ class GeoQuestionResLogic extends BaseLogic |
|
|
|
* @time :2025/7/8 17:16
|
|
|
|
*/
|
|
|
|
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']]);
|
|
|
|
return $this->success(['type_1'=>$type_1,'type_2'=>$type_2]);
|
|
|
|
return $this->success(['total'=>$total,'type_1'=>$type_1,'type_2'=>$type_2]);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
...
|
...
|
|