作者 李宇航

合并分支 'lyh-server' 到 'master'

gx暂停计时



查看合并请求 !1957
@@ -31,8 +31,7 @@ class BTemplateModuleProjectLogic extends BaseLogic @@ -31,8 +31,7 @@ class BTemplateModuleProjectLogic extends BaseLogic
31 */ 31 */
32 public function ModuleList($map,$order = 'created_at',$filed = ['id','name','status','image','html','project_id']){ 32 public function ModuleList($map,$order = 'created_at',$filed = ['id','name','status','image','html','project_id']){
33 $map['deleted_status'] = 0; 33 $map['deleted_status'] = 0;
34 - $map['project_id'] = $this->user['project_id'];  
35 - $list = $this->model->list($map,$order,$filed); 34 + $list = $this->model::whereRaw("FIND_IN_SET(?, project_id)", [$this->user['project_id']])->get()->toArray();
36 $templateLabel = new TemplateLabel(); 35 $templateLabel = new TemplateLabel();
37 $label = []; 36 $label = [];
38 foreach ($list as $v){ 37 foreach ($list as $v){