wupengfei 2 years ago
parent
commit
4dc8b38970
2 changed files with 2 additions and 2 deletions
  1. 1 1
      .idea/workspace.xml
  2. 1 1
      application/api/controller/Forum.php

+ 1 - 1
.idea/workspace.xml

@@ -205,7 +205,7 @@
       <workItem from="1670719843429" duration="8446000" />
       <workItem from="1670807412269" duration="9728000" />
       <workItem from="1671065604459" duration="7662000" />
-      <workItem from="1671152221434" duration="13091000" />
+      <workItem from="1671152221434" duration="13146000" />
     </task>
     <servers />
   </component>

+ 1 - 1
application/api/controller/Forum.php

@@ -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;