正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -29,9 +29,10 @@ class GeoQuestionResLogic extends BaseLogic | @@ -29,9 +29,10 @@ class GeoQuestionResLogic extends BaseLogic | ||
| 29 | * @time :2025/7/8 17:16 | 29 | * @time :2025/7/8 17:16 |
| 30 | */ | 30 | */ |
| 31 | public function getCount(){ | 31 | public function getCount(){ |
| 32 | + $total = $this->model->counts(['project_id'=>$this->user['project_id']]); | ||
| 32 | $type_1 = $this->model->counts(['type'=>1,'project_id'=>$this->user['project_id']]); | 33 | $type_1 = $this->model->counts(['type'=>1,'project_id'=>$this->user['project_id']]); |
| 33 | $type_2 = $this->model->counts(['type'=>2,'project_id'=>$this->user['project_id']]); | 34 | $type_2 = $this->model->counts(['type'=>2,'project_id'=>$this->user['project_id']]); |
| 34 | - return $this->success(['type_1'=>$type_1,'type_2'=>$type_2]); | 35 | + return $this->success(['total'=>$total,'type_1'=>$type_1,'type_2'=>$type_2]); |
| 35 | } | 36 | } |
| 36 | 37 | ||
| 37 | /** | 38 | /** |
-
请 注册 或 登录 后发表评论