正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -174,8 +174,8 @@ class ComController extends BaseController | @@ -174,8 +174,8 @@ class ComController extends BaseController | ||
| 174 | public function getIsBlog(){ | 174 | public function getIsBlog(){ |
| 175 | $projectModel = new Project(); | 175 | $projectModel = new Project(); |
| 176 | $info = $projectModel->read(['id'=>$this->user['project_id']]); | 176 | $info = $projectModel->read(['id'=>$this->user['project_id']]); |
| 177 | - if($info['is_show_blog'] == 0){ | ||
| 178 | - return 1; | 177 | + if($info['is_show_blog'] != 0){ |
| 178 | + return 1;//不显示 | ||
| 179 | } | 179 | } |
| 180 | return 0; | 180 | return 0; |
| 181 | } | 181 | } |
-
请 注册 或 登录 后发表评论