Merge branch 'master-server' of http://47.244.231.31:8099/zhl/globalso-v6
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -114,7 +114,7 @@ class ComController extends BaseController | @@ -114,7 +114,7 @@ class ComController extends BaseController | ||
| 114 | $info['role_menu'] = trim(str_replace(',52,',',',','.$info['role_menu'].','),','); | 114 | $info['role_menu'] = trim(str_replace(',52,',',',','.$info['role_menu'].','),','); |
| 115 | } | 115 | } |
| 116 | $is_comment = $this->getIsComment(); | 116 | $is_comment = $this->getIsComment(); |
| 117 | - if(!$is_comment){ | 117 | + if($is_comment != 1){ |
| 118 | $info['role_menu'] = trim(str_replace(',55,',',',','.$info['role_menu'].','),','); | 118 | $info['role_menu'] = trim(str_replace(',55,',',',','.$info['role_menu'].','),','); |
| 119 | } | 119 | } |
| 120 | $this->map = [ | 120 | $this->map = [ |
| @@ -246,7 +246,7 @@ class ComController extends BaseController | @@ -246,7 +246,7 @@ class ComController extends BaseController | ||
| 246 | * @time :2024/9/14 13:32 | 246 | * @time :2024/9/14 13:32 |
| 247 | */ | 247 | */ |
| 248 | public function getIsComment(){ | 248 | public function getIsComment(){ |
| 249 | - return $this->user['is_common'] ?? 0; | 249 | + return $this->user['is_comment'] ?? 0; |
| 250 | } | 250 | } |
| 251 | 251 | ||
| 252 | /** | 252 | /** |
-
请 注册 或 登录 后发表评论