This commit is contained in:
2021-09-18 16:54:39 +08:00
parent a6f056b8c8
commit 8f3b856bd6
63 changed files with 232 additions and 1585 deletions
+3 -4
View File
@@ -5,7 +5,6 @@ namespace Kiri\Abstracts;
use Exception;
use Http\Exception\ExitException;
use Kiri\Core\Json;
/**
@@ -19,11 +18,11 @@ class BaseGoto extends Component
* @param string $message
* @param int $statusCode
* @return mixed
* @throws ExitException
* @throws Exception
*/
public function end(string $message, $statusCode = 200): mixed
public function end(string $message, int $statusCode = 200): mixed
{
throw new ExitException(Json::to(12350, $message), $statusCode);
throw new Exception(Json::to(12350, $message), $statusCode);
}
}