作者 lyh

gx

@@ -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