mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
simplify no action output
This commit is contained in:
+1
-1
@@ -160,7 +160,7 @@ try {
|
|||||||
$result = $class::$action($params);
|
$result = $class::$action($params);
|
||||||
exit(json_encode(success($result)));
|
exit(json_encode(success($result)));
|
||||||
} else {
|
} else {
|
||||||
do_log('hack attempt '.print_r($CURUSER, true), 'error');
|
do_log("hacking attempt made by {$CURUSER['username']},uid {$CURUSER['id']}", 'error');
|
||||||
throw new \RuntimeException("no Action");
|
throw new \RuntimeException("no Action");
|
||||||
}
|
}
|
||||||
}catch(\Throwable $exception){
|
}catch(\Throwable $exception){
|
||||||
|
|||||||
Reference in New Issue
Block a user