正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -25,7 +25,7 @@ class MonthReportController extends BaseController | @@ -25,7 +25,7 @@ class MonthReportController extends BaseController | ||
| 25 | public function getMonth(){ | 25 | public function getMonth(){ |
| 26 | $monthCountModel = new MonthCount(); | 26 | $monthCountModel = new MonthCount(); |
| 27 | $this->map['project_id'] = $this->user['project_id']; | 27 | $this->map['project_id'] = $this->user['project_id']; |
| 28 | - $month = $monthCountModel->formatQuery($this->map)->pluck('month')->toArray(); | 28 | + $month = $monthCountModel->formatQuery($this->map)->pluck('month')->unique()->toArray(); |
| 29 | $this->response('success',Code::SUCCESS,$month); | 29 | $this->response('success',Code::SUCCESS,$month); |
| 30 | } | 30 | } |
| 31 | 31 |
-
请 注册 或 登录 后发表评论