no message
This commit is contained in:
1 parent
9ad13bfdde
commit
5b079de70b
16 files changed
+1193
-368
No files matched your search
@@ -71,8 +71,8 @@ final class HookController
|
||||
|
||||
$sClassPath = "App\\Services\\TG\\Hook\\Mod\\".$sClass;
|
||||
|
||||
if (method_exists($sClassPath, $sFunc)) {
|
||||
$oInstans = new $sClassPath();
|
||||
// if (method_exists($sClassPath, $sFunc)) {
|
||||
$oInstans = new $sClassPath($aUpdate);
|
||||
$r = $oInstans->$sFunc($aParams);
|
||||
|
||||
// 可以不返回,里面直接send
|
||||
@@ -90,9 +90,9 @@ final class HookController
|
||||
Http::response(200);
|
||||
}
|
||||
|
||||
} else {
|
||||
throw new \Exception("没有这个方法:".$sClass.'#'.$sFunc);
|
||||
}
|
||||
// } else {
|
||||
// throw new \Exception("没有这个方法:".$sClass.'#'.$sFunc);
|
||||
// }
|
||||
|
||||
} catch (\Throwable $e) {
|
||||
$sMessage = "错误(line:".$e->getLine()."): " . $e->getMessage();
|
||||
|
||||
Reference in new issue
Block a user