no message
This commit is contained in:
parent
64c73fe1a2
commit
f8d15e7f99
@ -330,6 +330,18 @@ class SakaiController
|
||||
$s = "sort rank block";
|
||||
$s = "unsort";
|
||||
|
||||
$s = "case";
|
||||
|
||||
$s = "main";
|
||||
|
||||
$s = "openRe";
|
||||
// $s = "toWait 333333";
|
||||
$s = "no 2";
|
||||
|
||||
$s = "case a";
|
||||
|
||||
// $s = "openRe";
|
||||
|
||||
|
||||
|
||||
// $s = "";
|
||||
|
||||
@ -99,10 +99,23 @@ class Book extends Model
|
||||
if (!isset($oParentRag->sort) && !isset($oParentRag->like)) {
|
||||
$sTodoShowRank = BookOption::_hit("todo_show_rank");
|
||||
$aTodoShowRank = explode(",", $sTodoShowRank);
|
||||
$oSelf = $oSelf->where(function($query) use ($aTodoShowRank) {
|
||||
$query->whereIn("rank", $aTodoShowRank)
|
||||
->orWhereNull("rank");
|
||||
});
|
||||
|
||||
if ($oParentRag->case == "A") {
|
||||
|
||||
$oSelf = $oSelf->where(function($query) use ($aTodoShowRank) {
|
||||
$query->whereIn("rank", $aTodoShowRank)
|
||||
->orWhereNull("rank");
|
||||
});
|
||||
|
||||
} else if ($oParentRag->case == "B") {
|
||||
|
||||
$oSelf = $oSelf->where(function($query) use ($aTodoShowRank) {
|
||||
$query->whereNotIn("rank", $aTodoShowRank)
|
||||
->orWhereNull("rank");
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@ -670,6 +670,26 @@ class Book extends Base {
|
||||
// public function
|
||||
//// todo系列 end
|
||||
|
||||
//// case 系列
|
||||
// 待完善,case 1 case 2显示模式套装
|
||||
public function case($aParam)
|
||||
{
|
||||
$sCase = $aParam["aArg"][1] ?? "A";
|
||||
|
||||
$sCase = strtoupper($sCase);
|
||||
|
||||
$oRag = $this->_getParentRag();
|
||||
|
||||
$oRag->case = $sCase;
|
||||
|
||||
$oRag->save();
|
||||
|
||||
return $this->openRe();
|
||||
}
|
||||
|
||||
|
||||
//// case 系列 end
|
||||
|
||||
//// open 系列
|
||||
|
||||
public function openRe()
|
||||
@ -974,7 +994,8 @@ class Book extends Base {
|
||||
|
||||
$oParentRag = $this->_getParentRag();
|
||||
$aParentType = $this->_typeFormat($oParentRag->type);
|
||||
|
||||
// tomd(3333);
|
||||
// tomd($aParentType[0], 1);
|
||||
if ($aParentType[0] == "todo") {
|
||||
$mCustom = $mCustom ? $mCustom : "none";
|
||||
if (empty($oBook->rank)) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user