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