作者 lyh

gx

@@ -318,7 +318,8 @@ class LoginController extends BaseController @@ -318,7 +318,8 @@ class LoginController extends BaseController
318 $result = []; 318 $result = [];
319 $data = DB::select("SELECT project_id, COUNT(*) as project_count FROM gl_file GROUP BY project_id;"); 319 $data = DB::select("SELECT project_id, COUNT(*) as project_count FROM gl_file GROUP BY project_id;");
320 foreach ($data as $v){ 320 foreach ($data as $v){
321 - array_push($result,$v['project_id']); 321 +
  322 + array_push($result,$v->project_id);
322 } 323 }
323 $this->response('success',Code::SUCCESS,$result); 324 $this->response('success',Code::SUCCESS,$result);
324 } 325 }