no message

This commit is contained in:
hellcat 2025-06-11 12:56:45 +08:00
parent ae4d604710
commit e1859d4ab8
2 changed files with 13 additions and 2 deletions

View File

@ -101,8 +101,15 @@ class Book extends Model
$aTodoShowRank = explode(",", $sTodoShowRank);
// $aTodoShowRank = [done];
// tomd($aTodoShowRank, 1);
$oSelf = $oSelf->whereIn("rank", $aTodoShowRank);
$oSelf = $oSelf->orWhereNull("rank");
// $oSelf = self::where("path", $sPath)->where("is_del", $iIsDel);
// $oSelf = $oSelf->whereIn("rank", $aTodoShowRank);
// $oSelf = $oSelf->orWhereNull("rank");
// $oSelf = self::where("path", $sPath)->where("is_del", $iIsDel);
$oSelf = $oSelf->where(function($query) use ($aTodoShowRank) {
$query->whereIn("rank", $aTodoShowRank)
->orWhereNull("rank");
});
// $oSelf = $oSelf->where("rank", "!=", "done");
// $oSelf = $oSelf->where("rank", "!=", "block");

View File

@ -88,6 +88,7 @@ class Book extends Base {
//// 展开 系列
// 展开所有,一层
public function e()
{
$is_exp = ModelBook::where("path", $this->sPath)->where("is_del", 0)->first()?->exp;
@ -101,6 +102,7 @@ class Book extends Base {
return $this->openRe();
}
// 展开所有,无限
public function ee()
{
$is_exp = ModelBook::where("path", "like", $this->sPath."%")->where("is_del", 0)->first()?->exp;
@ -114,6 +116,7 @@ class Book extends Base {
return $this->openRe();
}
// 展开no一层
public function u($aParam)
{
$iNo = $aParam["aArg"][1] ?? false;
@ -133,6 +136,7 @@ class Book extends Base {
}
// 展开no无限
public function uu($aParam)
{
$iNo = $aParam["aArg"] ?? false;