no message

This commit is contained in:
hellcat 2025-06-10 19:46:44 +08:00
parent 6b40b75ef8
commit 88259e2970
3 changed files with 17 additions and 6 deletions

View File

@ -299,6 +299,10 @@ class SakaiController
$s = "/hook#set /book#";
$s = "rag ss";
$s = "fire_toggle";
$s = "type todo";
$s = "toDone 123";
$s = "optionSet todo_show_type 1";
$s = "openRe";
// $s = "back";
// movetoId和like列表

View File

@ -94,8 +94,12 @@ class Book extends Model
$aOrder = explode(",", $sTodoOrder);
if ($iPage !== "all") {
$oSelf = $oSelf->where("rank", "!=", "done");
$oSelf = $oSelf->where("rank", "!=", "block");
if (isset($aRagOption["todo_show_type"]) && $aRagOption["todo_show_type"] == 1) {
$oSelf = $oSelf->where("rank", "!=", "done");
$oSelf = $oSelf->where("rank", "!=", "block");
}
}
$oSelf = $oSelf->orderByRaw("rank IS NULL, FIELD(rank, " . $sTodoOrder . ") ".$sOrderType);

View File

@ -43,7 +43,8 @@ class Book extends Base {
$this->aRagOption = json_decode($this->oRag->option, true);
} else {
$this->aRagOption = [];
$this->aRagOption["fire_show"] = false;
// $this->aRagOption["fire_show"] = false;
// $this->aRagOption["todo_show_type"] = 1;
}
}
@ -275,6 +276,9 @@ class Book extends Base {
if ($sType == "todo") {
$oParentRag->order = "rank_todo";
$oParentRag->option = json_encode([
"todo_show_type" => 1
]);
}
$r = $oParentRag->save();
@ -1576,7 +1580,6 @@ class Book extends Base {
// fire倒计时列表
public function firel()
{
// tomd(11, 1);
$iLimit = ModelBookOption::_hit("fire_limit");
$oBookFire = ModelBook::where("fire", "!=", NULL)->orderBy("fire")->limit($iLimit)->get();
@ -1952,7 +1955,7 @@ class Book extends Base {
{
$arr = [];
// tomd(@$arr["zz"]);
tomd($arr["zz"]);
}
//// 字符串生成 系列
private function bookToStr($oBook)
@ -2100,7 +2103,7 @@ class Book extends Base {
$sStr .= ":".$this->_RankMap($oRag->rank);
}
// tomd($this->oRag->option, 1);
if ($this->aRagOption["fire_show"] == true && $oRag->fire) {
if ((isset($this->aRagOption["fire_show"]) && $this->aRagOption["fire_show"] == true) && $oRag->fire) {
$iDayLine = ceil((strtotime($oRag->fire) - time()) / 86400);