正在显示
1 个修改的文件
包含
1 行增加
和
3 行删除
| @@ -69,7 +69,7 @@ class ComController extends BaseController | @@ -69,7 +69,7 @@ class ComController extends BaseController | ||
| 69 | $code = $this->getIsHome(); | 69 | $code = $this->getIsHome(); |
| 70 | $projectRoleModel = new ProjectRoleModel(); | 70 | $projectRoleModel = new ProjectRoleModel(); |
| 71 | $info = $projectRoleModel->read(['id'=>$this->user['role_id']]); | 71 | $info = $projectRoleModel->read(['id'=>$this->user['role_id']]); |
| 72 | - if($code != 0){ | 72 | + if($code != 1){ |
| 73 | $info['role_menu'] = trim(str_replace(',11,',',',','.$info['role_menu'].','),','); | 73 | $info['role_menu'] = trim(str_replace(',11,',',',','.$info['role_menu'].','),','); |
| 74 | } | 74 | } |
| 75 | $this->map = [ | 75 | $this->map = [ |
| @@ -109,8 +109,6 @@ class ComController extends BaseController | @@ -109,8 +109,6 @@ class ComController extends BaseController | ||
| 109 | $info = $deployBuild->read(['project_id'=>$this->user['project_id']]); | 109 | $info = $deployBuild->read(['project_id'=>$this->user['project_id']]); |
| 110 | if(!empty($info['configuration'])){ | 110 | if(!empty($info['configuration'])){ |
| 111 | $configuration = Arr::s2a($info['configuration']); | 111 | $configuration = Arr::s2a($info['configuration']); |
| 112 | - var_dump($configuration); | ||
| 113 | - die(); | ||
| 114 | if(isset($configuration['is_home']) && ((int)$configuration['is_home'] != 0)){ | 112 | if(isset($configuration['is_home']) && ((int)$configuration['is_home'] != 0)){ |
| 115 | return 1; | 113 | return 1; |
| 116 | } | 114 | } |
-
请 注册 或 登录 后发表评论