no message

This commit is contained in:
hellcat 2025-06-11 15:11:36 +08:00
parent 722cb33631
commit 7f1d3ce4f3
3 changed files with 19 additions and 7 deletions

View File

@ -312,6 +312,9 @@ class SakaiController
$s = "fire_toggle"; $s = "fire_toggle";
$s = "no 7"; $s = "no 7";
$s = "openRe"; $s = "openRe";
$s = "del 1";
// $s = "war 8";
// $s = "no 9";
// $s = "detail__all 1"; // $s = "detail__all 1";
// $s = "noRe"; // $s = "noRe";
// $s = "rag xxx"; // $s = "rag xxx";

View File

@ -89,7 +89,8 @@ class Book extends Model
if (!empty($oParentRag->sort)) { if (!empty($oParentRag->sort)) {
$aSort = explode("_", $oParentRag->sort); $aSort = explode("_", $oParentRag->sort);
self::where("path", $sPath)->where("is_del", $iIsDel); // tomd($aSort, 1);
// self::where("path", $sPath)->where("is_del", $iIsDel);
$oSelf = $oSelf->orWhere("path", $oParentRag->path); $oSelf = $oSelf->orWhere("path", $oParentRag->path);
$oSelf = $oSelf->where($aSort[0], $aSort[1]); $oSelf = $oSelf->where($aSort[0], $aSort[1]);

View File

@ -303,11 +303,13 @@ class Book extends Base {
private function _kv($k, $v, $aNo) private function _kv($k, $v, $aNo)
{ {
if (!$aNo) { // if (!$aNo) {
$aNo = $this->_getCheckedNo(); // $aNo = $this->_getCheckedNo();
} // }
$r = ModelBook::where("path", $this->sPath)->whereIn("no", $aNo)->update([$k => $v]); $aId = $this->_noToId($aNo);
$r = ModelBook::whereIn("id", $aId)->update([$k => $v]);
return $r; return $r;
} }
@ -703,8 +705,10 @@ class Book extends Base {
$oParentRag = $this->_getParentRag(); $oParentRag = $this->_getParentRag();
$this->aParentType = $this->_typeFormat($oParentRag->type); $this->aParentType = $this->_typeFormat($oParentRag->type);
if ($this->aParentType[0] == "todo") { if ($this->aParentType[0] == "dir") {
// $this->mRst[] = ["完", 22]; // $this->sPath = $oParentRag->path;
// $this->oRag->sort
// $oRag = ModelBook::_path();
} }
$oBook = ModelBook::_path($this->sPath, $this->iPageNo); $oBook = ModelBook::_path($this->sPath, $this->iPageNo);
@ -1758,6 +1762,10 @@ class Book extends Base {
private function _noToId($aNo = false) private function _noToId($aNo = false)
{ {
if ($this->oRag->type == "dir") {
$this->sPath = $this->oRag->path;
}
/// 是空认为是check 返回之 /// 是空认为是check 返回之
if (!$aNo) { if (!$aNo) {
$aId = $this->_idByChecked(); $aId = $this->_idByChecked();