作者 lyh

gx

@@ -71,6 +71,8 @@ class UpdateMainHtml extends Command @@ -71,6 +71,8 @@ class UpdateMainHtml extends Command
71 $moduleModel = new CustomModule(); 71 $moduleModel = new CustomModule();
72 $info = $moduleModel->read(['route'=>'video']); 72 $info = $moduleModel->read(['route'=>'video']);
73 if($info === false){ 73 if($info === false){
  74 + $info = $moduleModel->read(['name'=>'视频模块']);
  75 + if($info === false){
74 $data = [ 76 $data = [
75 'name'=>'视频模块', 77 'name'=>'视频模块',
76 'project_id'=>$project_id, 78 'project_id'=>$project_id,
@@ -78,6 +80,7 @@ class UpdateMainHtml extends Command @@ -78,6 +80,7 @@ class UpdateMainHtml extends Command
78 ]; 80 ];
79 $moduleModel->add($data); 81 $moduleModel->add($data);
80 } 82 }
  83 + }
81 return true; 84 return true;
82 } 85 }
83 86