rabin 5 years ago
parent
commit
0bf0cc7036
3 changed files with 4 additions and 3 deletions
  1. 1 1
      app/journal/lib/Manage.php
  2. 2 1
      app/journal/src/Api.php
  3. 1 1
      app/product/database/cate.php

+ 1 - 1
app/journal/lib/Manage.php

@@ -134,7 +134,7 @@ class Manage
 
         $buy_num = $data['buy_num'];
 
-        $html .= '订阅本数:('.$buy_num.'+'.$num_add_ding.')*'.$num_ratio_ding.'='.$num_ding;
+        $html = '订阅本数:('.$buy_num.'+'.$num_add_ding.')*'.$num_ratio_ding.'='.$num_ding;
         
         return $html;
     }

+ 2 - 1
app/journal/src/Api.php

@@ -21,7 +21,8 @@ class Api
                 $data['num_ding'] = 0;
                 if ($star) {
                     foreach ($star as $k => $v) {
-                        $data['num_ding'] += $this->starDing($v);
+                        $v = $this->starDing($v);
+                        $data['num_ding'] += $v['num_ding'];
                     }
                 }
                 $data['num_up'] = $data['num_add_ding'] = 0;

+ 1 - 1
app/product/database/cate.php

@@ -76,7 +76,7 @@ return array
 		'col' => 'name,state,cdate',
 		'value' => array
 		(
-			'"默认栏目",1,' . time(),
+			'"默认分类",1,' . time(),
 		),
 	),