wupengfei 2 năm trước cách đây
mục cha
commit
77072a1639
2 tập tin đã thay đổi với 5 bổ sung5 xóa
  1. 4 4
      .idea/workspace.xml
  2. 1 1
      application/api/controller/Press.php

+ 4 - 4
.idea/workspace.xml

@@ -3,7 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="aa">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/api/controller/Recruit.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Recruit.php" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/api/controller/Press.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Press.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -180,7 +180,7 @@
       <workItem from="1667206310151" duration="2427000" />
       <workItem from="1667263628412" duration="22693000" />
       <workItem from="1667350901825" duration="20542000" />
-      <workItem from="1667437262057" duration="7282000" />
+      <workItem from="1667437262057" duration="12425000" />
     </task>
     <servers />
   </component>
@@ -248,10 +248,10 @@
       <screen x="0" y="0" width="2560" height="1400" />
     </state>
     <state x="1336" y="460" key="com.jetbrains.php.test.PhpNewTestDialog/0.0.2560.1400@0.0.2560.1400" timestamp="1659060797945" />
-    <state x="794" y="328" width="626" height="490" key="find.popup" timestamp="1667269310450">
+    <state x="794" y="328" width="626" height="490" key="find.popup" timestamp="1667464007798">
       <screen x="0" y="0" width="1920" height="1040" />
     </state>
-    <state x="794" y="328" width="626" height="490" key="find.popup/0.0.1920.1040@0.0.1920.1040" timestamp="1667269310450" />
+    <state x="794" y="328" width="626" height="490" key="find.popup/0.0.1920.1040@0.0.1920.1040" timestamp="1667464007798" />
     <state x="1058" y="441" width="617" height="490" key="find.popup/0.0.2560.1400@0.0.2560.1400" timestamp="1658828723311" />
     <state x="741" y="254" key="run.anything.popup" timestamp="1667264175452">
       <screen x="0" y="0" width="1920" height="1040" />

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

@@ -118,7 +118,7 @@ class Press extends Base
     {
         $sel_where[]  = ['id','=',input('get.id')];
         $detail = \app\common\model\Press::field('id,images,title,content,read_num,create_at,transmit_num,user_id')->where($sel_where)->find()->toArray();
-        $detail['comment_num'] = PressComment::where(['first_id'=>$detail['id'],'type'=>1])->count();
+        $detail['comment_num'] = PressComment::where(['first_id'=>$detail['id'],'type'=>1,'is_deleted'=>0])->count();
         $detail['is_collect'] = UserCollect::checkCollectByType($this->user_id,4,$detail['id']);
         $detail['collect_num'] = UserCollect::getCollectNum(4,$detail['id']);
         $detail['is_praise'] = PlatformLike::checkTags($this->user_id,$detail['id'],1);