no message

This commit is contained in:
hellcat 2025-06-11 16:47:19 +08:00
parent 7aae713b09
commit f909f7eb2c
3 changed files with 6 additions and 4 deletions

View File

@ -41,6 +41,7 @@ class CronController
$s = $v;
}
$h = "00";
//// test end
if ($h == "00") {

View File

@ -317,6 +317,7 @@ class SakaiController
$s = "back";
$s = "/cron#test";
$s = "/book#main";
$s = "/book#up__3";
// $s = "war 8";
// $s = "no 9";
// $s = "detail__all 1";

View File

@ -1293,12 +1293,12 @@ class Book extends Base {
} else {
$iNoMin = ModelBook::where("path", $this->sPath)->where("checked", 1)->orderBy("no")->first()?->no;
}
// tomd($iNoMin);
if (!$iNoMin) {
return "没有选中";
}
$this->_to($iNoMin - 1);
$this->_to($iNoMin - 1, $aNoNow);
return $this->openRe();
}
@ -1317,14 +1317,14 @@ class Book extends Base {
return "没有选中";
}
$this->_to($iNoMax + 1);
$this->_to($iNoMax + 1, $aNoNow);
return $this->openRe();
}
private function _to($iNoTo, $aNoNow = [])
{
// 兼容checked和no模式
if ($aNoNow) {
$oBookChecked = ModelBook::where("path", $this->sPath)->whereIn("no", $aNoNow)->orderBy("no")->get();