wupengfei 2 vuotta sitten
vanhempi
commit
79a5948d83
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 2 3
      .idea/workspace.xml
  2. 2 1
      application/api/controller/Article.php

+ 2 - 3
.idea/workspace.xml

@@ -2,9 +2,8 @@
 <project version="4">
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
-      <change afterPath="$PROJECT_DIR$/application/common/service/OpenSearch.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/application/api/controller/Datum.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/controller/Datum.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" />
@@ -253,7 +252,7 @@
       <workItem from="1678149106133" duration="24129000" />
       <workItem from="1678236784872" duration="19064000" />
       <workItem from="1678322422199" duration="23277000" />
-      <workItem from="1678410737283" duration="10155000" />
+      <workItem from="1678410737283" duration="16572000" />
     </task>
     <servers />
   </component>

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

@@ -1029,7 +1029,8 @@ class Article extends Base
             $v['app_name'] = $user_info['name'];
             $v['app_log'] = $user_info['headimg'];
         });
-        $total_num= ArticleComment::where($sel_where)->alias('t')->count();
+        $total_num= ArticleComment::where($sel_where)->alias('t')   ->leftJoin('ArticleItem i','t.item_id = i.id')
+            ->leftJoin('store_member u','t.user_id = u.id')->count();
         $this->success('ok',['list'=>$list,'total_count'=>$total_num,'page_num'=>$this->page_num]);
     }