|
@@ -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;
|