rabin 5 years ago
parent
commit
757c75fcfd
2 changed files with 6 additions and 6 deletions
  1. 4 4
      main/src/Journal.php
  2. 2 2
      main/src/Journal_v1.php

+ 4 - 4
main/src/Journal.php

@@ -42,9 +42,9 @@ class Journal extends Core
         }
 
         if ($this->app) {
-            $where['publish'] = 2;
+            $where['publish'] = '0,2';
         } else {
-            $where['publish'] = 1;
+            $where['publish'] = '0,1';
         }
         
         $data = Dever::db('journal/info')->getAll($where);
@@ -81,11 +81,11 @@ class Journal extends Core
         if (isset($cate['id'])) {
             $where['cate_id'] = $cate['id'];
         }
-        $where['publish'] = 1;
+        $where['publish'] = '0,1';
         if ($this->app) {
             $where['cate_id_1'] = 1;
             $where['time'] = $time - $day;
-            $where['publish'] = 2;
+            $where['publish'] = '0,2';
 
             # 获取最新的小刊
             $this->data['push'] = Dever::db('journal/info')->getNew($where);

+ 2 - 2
main/src/Journal_v1.php

@@ -39,7 +39,7 @@ class Journal_v1 extends Core
         if (isset($cate['id'])) {
             $where['cate_id'] = $cate['id'];
         }
-        $where['publish'] = 1;
+        $where['publish'] = '0,1';
         $this->data['button'] = array();
 
         # 热门电子刊
@@ -151,7 +151,7 @@ class Journal_v1 extends Core
 
         $where['cate_id_1'] = 1;
         $where['time'] = $time - $day;
-        $where['publish'] = 2;
+        $where['publish'] = '0,2';
 
         # 获取最新的小刊
         $this->data['push'] = Dever::db('journal/info')->getNew($where);