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

+ 2 - 2
.idea/workspace.xml

@@ -3,7 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/api/controller/Expedite.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Expedite.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/api/controller/Article.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Article.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -249,7 +249,7 @@
       <workItem from="1677718149453" duration="25714000" />
       <workItem from="1677805207495" duration="7323000" />
       <workItem from="1678063982310" duration="24531000" />
-      <workItem from="1678149106133" duration="4932000" />
+      <workItem from="1678149106133" duration="10052000" />
     </task>
     <servers />
   </component>

+ 2 - 0
application/api/controller/Article.php

@@ -372,6 +372,7 @@ class Article extends Base
      * @return name:app_name type:string default:-- desc:发布者
      * @return name:app_logo type:string default:-- desc:发布者头像
      * @return name:follow_switch type:int default:-- desc:订阅开关状态【0关闭1开启】
+     * @return name:switch_open type:int default:-- desc:通知开关【0关闭1开启】
      * @return name:article_title type:string default:-- desc:系列标题
      */
     public function getArticleItemInfo()
@@ -397,6 +398,7 @@ class Article extends Base
         $detail['app_name'] = $article_auth['app_name'];
         $detail['app_logo'] = $article_auth['app_logo'];
         $detail['follow_switch'] =  PlatformSwitch::checkSwitch($this->user_id,$detail['article_id'],3);
+        $detail['switch_open'] =  PlatformSwitch::checkSwitch($this->user_id,$detail['article_id'],8);
         //var_dump($this->user_id,3,$detail['article_id'],$item_id);
         $this->success('ok',['detail'=>$detail]);
     }