diff --git a/App/HttpController/Api/ApiBase.php b/App/HttpController/Api/ApiBase.php index dc93971..915de79 100644 --- a/App/HttpController/Api/ApiBase.php +++ b/App/HttpController/Api/ApiBase.php @@ -41,7 +41,7 @@ protected function onException(\Throwable $throwable): void $msg = $throwable->getValidate()->getError()->getErrorRuleMsg(); $this->writeJson(400, null, "{$msg}"); } else { - if (Core::getInstance()->runMode() == 'dev') { + if (Core::getInstance()->runMode() === 'dev') { $this->writeJson(500, null, $throwable->getMessage()); } else { Trigger::getInstance()->throwable($throwable); diff --git a/bootstrap.php b/bootstrap.php new file mode 100644 index 0000000..a110977 --- /dev/null +++ b/bootstrap.php @@ -0,0 +1,3 @@ +