作者 lyh

重写demo脚本

@@ -32,8 +32,7 @@ class CustomModuleExtentController extends BaseController @@ -32,8 +32,7 @@ class CustomModuleExtentController extends BaseController
32 'module_id.required' => 'module_id不能为空', 32 'module_id.required' => 'module_id不能为空',
33 ]); 33 ]);
34 $this->map['project_id'] = $this->user['project_id']; 34 $this->map['project_id'] = $this->user['project_id'];
35 - $filed = ['id','title','key','status','type','operator_id','project_id','module_id','created_at','updated_at'];  
36 - $lists = $customModuleExtend->list($this->map,$this->order,$filed); 35 + $lists = $customModuleExtend->list($this->map,$this->order,['id','title','key','status','type','operator_id','project_id','module_id','created_at','updated_at']);
37 $this->response('success',Code::SUCCESS,$lists); 36 $this->response('success',Code::SUCCESS,$lists);
38 } 37 }
39 38