dever 6 years ago
parent
commit
f4c4133a33
1 changed files with 7 additions and 1 deletions
  1. 7 1
      main/src/Journal.php

+ 7 - 1
main/src/Journal.php

@@ -11,7 +11,7 @@ class Journal extends Core
     public function home()
     {
         # 精选推荐
-        $this->jingxuan(false, 5);
+        $this->jingxuan(-1, 5);
 
         # 小刊列表
         $where = array();
@@ -56,6 +56,12 @@ class Journal extends Core
     # 精选推荐更多
     public function jingxuan($page = true, $num = 4)
     {
+        if (!$page) {
+            $page = true;
+        }
+        if ($page == -1) {
+            $page = false;
+        }
         if (!$num) {
             $num = 4;
         }