rabin 5 years ago
parent
commit
ed4ae88134
1 changed files with 7 additions and 5 deletions
  1. 7 5
      main/src/Journal_v1.php

+ 7 - 5
main/src/Journal_v1.php

@@ -135,13 +135,15 @@ class Journal_v1 extends Core
     {
         if ($data['push'] && isset($data['push'][0])) {
             foreach ($data['push'] as $k => $v) {
-                $num_ding = Dever::load('act/lib/num')->getCounter($v['id']);
-                if ($num_ding && $num_ding >= $v['num_ding']) {
-                    $data['push'][$k]['num_ding'] = $num_ding;
-                    $data['push'][$k] = $this->ding($data['push'][$k]);
+                if ($v['hot'] == 1) {
+                    $num_ding = Dever::load('act/lib/num')->getCounter($v['id']);
+                    if ($num_ding && $num_ding >= $v['num_ding']) {
+                        $data['push'][$k]['num_ding'] = $num_ding;
+                        $data['push'][$k] = $this->ding($data['push'][$k]);
+                    }
                 }
             }
-        } elseif ($data['push'] && isset($data['push']['id'])) {
+        } elseif ($data['push'] && $data['push']['hot'] == 1 && isset($data['push']['id'])) {
             $num_ding = Dever::load('act/lib/num')->getCounter($data['push']['id']);
             if ($num_ding && $num_ding >= $data['push']['num_ding']) {
                 $data['push']['num_ding'] = $num_ding;