diff --git a/app/Models/Book.php b/app/Models/Book.php index d4351e09..b941386f 100755 --- a/app/Models/Book.php +++ b/app/Models/Book.php @@ -194,9 +194,9 @@ class Book extends Model // 默认也rank排序 } else { - if ($sOrder == "no") { +// if ($sOrder == "no") { $sOrderRank = BookOption::_hit("order_rank"); - } +// } } @@ -205,10 +205,10 @@ class Book extends Model $sOrderRank = implode(",", array_reverse($aOrderRank)); $oSelf = $oSelf->orderByRaw("FIELD(rank, " . $sOrderRank . ") DESC, (rank IS NULL) ASC"); - $oSelf = $oSelf->orderByRaw("fire DESC, (fire IS NULL) ASC"); + $oSelf = $oSelf->orderByRaw("fire ASC, (fire IS NULL) ASC"); -// $sOrder = "no"; -// $sOrderType = "asc"; + $sOrder = "no"; + $sOrderType = "asc"; $oSelf = $oSelf->orderBy($sOrder, $sOrderType);