正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
| @@ -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 |
-
请 注册 或 登录 后发表评论