dever 4 years ago
parent
commit
70076b5985
3 changed files with 3 additions and 5 deletions
  1. 1 1
      app/community/database/moment.php
  2. 1 1
      app/community/lib/Info.php
  3. 1 3
      app/community/lib/Moment.php

+ 1 - 1
app/community/database/moment.php

@@ -262,7 +262,7 @@ return array
 			),
 			'type' => 'all',
 			'order' => array('num_up`-`num_oppose' => 'desc', 'id' => 'desc'),
-			'limit' => '0,3',
+			'limit' => '0,1',
 			'col' => '*',
 		),
 

+ 1 - 1
app/community/lib/Info.php

@@ -157,7 +157,7 @@ class Info
         # 获取热门的子信息
         $info['child'] = array();
         if ($info['type'] < 20) {
-            $child = $this->getData('getHot', $uid, $info['cate_id'], 20, $info['id'], true, 1);
+            $child = $this->getData('getHot', $uid, $info['cate_id'], 20, $info['id'], true, 1, false, false, $collection_id);
             if ($child && $child['info']) {
                 $info['child'] = $child['info'];
                 $info['child_total'] = $child['total'];

+ 1 - 3
app/community/lib/Moment.php

@@ -139,13 +139,11 @@ class Moment
 
         # 获取热门的子信息
         $info['child'] = array();
-        $info['more'] = '';
         if ($info['type'] < 20) {
-            $child = $this->getData('getHot', $uid, 30, $info['id'], true, 1);
+            $child = $this->getData('getHot', $uid, 30, $info['id'], true, 1, false, false, $collection_id);
             if ($child && $child['info']) {
                 $info['child'] = $child['info'];
                 $info['child_total'] = $child['total'];
-                $info['more'] = '展开'.($info['child_total']-3).'条回复';;
             }
         }