no message

This commit is contained in:
hellcat 2025-06-10 20:06:56 +08:00
parent c47fc79f6b
commit 70f2e78a9c

View File

@ -94,11 +94,13 @@ final class HookController
} else if (method_exists($sUClassPath, $sUFunc)) { } else if (method_exists($sUClassPath, $sUFunc)) {
$oInstans = new $sUClassPath(); $oInstans = new $sUClassPath();
$r = $oInstans->$sUFunc($aParams, $aUpdate); $r = $oInstans->$sUFunc($aParams, $aUpdate);
} else if ($sClass == "book" || $sClass == "Book") { }
$sFunc = "main"; // else if ($sClass == "book" || $sClass == "Book") {
$oInstans = new $sUClassPath(); // $sFunc = "main";
$r = $oInstans->$sFunc($aParams, $aUpdate); // $oInstans = new $sUClassPath();
} else { // $r = $oInstans->$sFunc($aParams, $aUpdate);
// }
else {
throw new \Exception("没有这个方法:".$sClass.'#'.$sFunc); throw new \Exception("没有这个方法:".$sClass.'#'.$sFunc);
} }