|
@@ -199,7 +199,7 @@ class Forum extends Base
|
|
|
if($user_level > 0 && $detail['level'] > $user_level) $this->error('用户等级不足');
|
|
|
if($user_level == 0 && $detail['level'] > 1) $this->error('用户等级不足');
|
|
|
$detail['is_collect'] = UserCollect::checkCollectByType($this->user_id,5,$detail['id']);
|
|
|
- $detail['switch_open'] = PlatformSwitch::checkSwitch($this->user_id,5,$detail['id']);
|
|
|
+ $detail['switch_open'] = PlatformSwitch::checkSwitch($this->user_id,$detail['id'],1);
|
|
|
$detail['label_name'] = $detail['label'] ? explode(',',trim($detail['label'],',')): null;
|
|
|
if(!$detail['name']) $detail['name'] = $app_name;
|
|
|
if(!$detail['headimg']) $detail['headimg'] = $app_logo;
|