no message

This commit is contained in:
hellcat 2025-06-10 20:05:05 +08:00
parent e7af623a75
commit c47fc79f6b
3 changed files with 14 additions and 5 deletions

View File

@ -304,7 +304,8 @@ class SakaiController
$s = "optionSet todo_show_type 1"; $s = "optionSet todo_show_type 1";
$s = "openRe"; $s = "openRe";
// $s = "back"; // $s = "back";
$s = "todoShowType 3"; $s = "todoShowType AB";
// $s = "type todo";
// movetoId和like列表 // movetoId和like列表

View File

@ -95,9 +95,17 @@ class Book extends Model
if ($iPage !== "all") { if ($iPage !== "all") {
if (isset($aRagOption["todo_show_type"]) && $aRagOption["todo_show_type"] == 1) { if (isset($aRagOption["todo_show_type"])) {
$oSelf = $oSelf->where("rank", "!=", "done");
$oSelf = $oSelf->where("rank", "!=", "block"); if ($aRagOption["todo_show_type"] == "A") {
$oSelf = $oSelf->where("rank", "!=", "done");
$oSelf = $oSelf->where("rank", "!=", "block");
} else if ($aRagOption["todo_show_type"] == "B") {
$oSelf = $oSelf->whereIn("rank", ["done", "block"]);
} else if ($aRagOption["todo_show_type"] == "AB") {
}
} }
} }

View File

@ -277,7 +277,7 @@ class Book extends Base {
if ($sType == "todo") { if ($sType == "todo") {
$oParentRag->order = "rank_todo"; $oParentRag->order = "rank_todo";
$oParentRag->option = json_encode([ $oParentRag->option = json_encode([
"todo_show_type" => 1 "todo_show_type" => "A"
]); ]);
} }