no message
This commit is contained in:
parent
b7fd3e1a9a
commit
edf92e855a
@ -194,9 +194,9 @@ class Book extends Model
|
|||||||
// 默认也rank排序
|
// 默认也rank排序
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if ($sOrder == "no") {
|
// if ($sOrder == "no") {
|
||||||
$sOrderRank = BookOption::_hit("order_rank");
|
$sOrderRank = BookOption::_hit("order_rank");
|
||||||
}
|
// }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -205,10 +205,10 @@ class Book extends Model
|
|||||||
$sOrderRank = implode(",", array_reverse($aOrderRank));
|
$sOrderRank = implode(",", array_reverse($aOrderRank));
|
||||||
|
|
||||||
$oSelf = $oSelf->orderByRaw("FIELD(rank, " . $sOrderRank . ") DESC, (rank IS NULL) ASC");
|
$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";
|
$sOrder = "no";
|
||||||
// $sOrderType = "asc";
|
$sOrderType = "asc";
|
||||||
|
|
||||||
|
|
||||||
$oSelf = $oSelf->orderBy($sOrder, $sOrderType);
|
$oSelf = $oSelf->orderBy($sOrder, $sOrderType);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user