no message
This commit is contained in:
parent
70f2e78a9c
commit
d61e621590
@ -63,7 +63,6 @@ class Book extends Model
|
|||||||
|
|
||||||
// 获取上级rag
|
// 获取上级rag
|
||||||
$oParentRag = self::where("id", $iParentId)->first();
|
$oParentRag = self::where("id", $iParentId)->first();
|
||||||
// $oParentRag
|
|
||||||
|
|
||||||
// 上级属性
|
// 上级属性
|
||||||
$sOrder = $oParentRag->order ?? "no";
|
$sOrder = $oParentRag->order ?? "no";
|
||||||
@ -71,7 +70,6 @@ class Book extends Model
|
|||||||
|
|
||||||
// 上级option
|
// 上级option
|
||||||
$aRagOption = json_decode($oParentRag->option, 1);
|
$aRagOption = json_decode($oParentRag->option, 1);
|
||||||
// tomd($aRagOption, 1);
|
|
||||||
|
|
||||||
if (empty($oParentRag->limit)) {
|
if (empty($oParentRag->limit)) {
|
||||||
$iLimit = BookOption::_hit("page_limit");
|
$iLimit = BookOption::_hit("page_limit");
|
||||||
@ -84,10 +82,11 @@ class Book extends Model
|
|||||||
if (isset($aRagOption["where"])) {
|
if (isset($aRagOption["where"])) {
|
||||||
$oSelf = $oSelf->whereRaw($aRagOption["where"]);
|
$oSelf = $oSelf->whereRaw($aRagOption["where"]);
|
||||||
}
|
}
|
||||||
// if ($oParentRag->sort) {
|
|
||||||
// $aSort = explode("_", $oParentRag->sort);
|
if ($oParentRag->sort) {
|
||||||
// $oSelf = $oSelf->where($aSort[0], $aSort[1]);
|
$aSort = explode("_", $oParentRag->sort);
|
||||||
// }
|
$oSelf = $oSelf->where($aSort[0], $aSort[1]);
|
||||||
|
}
|
||||||
|
|
||||||
if ($oParentRag->order == "rank_todo") {
|
if ($oParentRag->order == "rank_todo") {
|
||||||
$sTodoOrder = BookOption::_hit("order_rank_todo");
|
$sTodoOrder = BookOption::_hit("order_rank_todo");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user