|
...
|
...
|
@@ -114,6 +114,10 @@ class ComController extends BaseController |
|
|
|
if(!$is_subscribe){
|
|
|
|
$info['role_menu'] = trim(str_replace(',52,',',',','.$info['role_menu'].','),',');
|
|
|
|
}
|
|
|
|
$is_comment = $this->getIsComment();
|
|
|
|
if(!$is_comment){
|
|
|
|
$info['role_menu'] = trim(str_replace(',55,',',',','.$info['role_menu'].','),',');
|
|
|
|
}
|
|
|
|
$this->map = [
|
|
|
|
'status'=>0,
|
|
|
|
'is_role'=>0,
|
|
...
|
...
|
@@ -157,6 +161,10 @@ class ComController extends BaseController |
|
|
|
if(!$is_subscribe){
|
|
|
|
$data[] = 52;
|
|
|
|
}
|
|
|
|
$is_comment = $this->getIsComment();
|
|
|
|
if(!$is_comment){
|
|
|
|
$data[] = 55;
|
|
|
|
}
|
|
|
|
if(!empty($data)){
|
|
|
|
$this->map['id'] = ['not in',$data];
|
|
|
|
}
|
|
...
|
...
|
@@ -232,6 +240,17 @@ class ComController extends BaseController |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :是否开启评论
|
|
|
|
* @name :getIsComment
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2024/9/14 13:32
|
|
|
|
*/
|
|
|
|
public function getIsComment(){
|
|
|
|
return $this->user['is_subscribe'] ?? 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name :登录用户编辑资料/修改密码
|
|
|
|
* @author :liyuhang
|
|
|
|
* @method
|
...
|
...
|
|