This commit is contained in:
2020-12-24 11:12:23 +08:00
parent 5a7c7176dc
commit f18031c2c0
18 changed files with 39 additions and 39 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ use Exception;
use HttpServer\Application;
use ReflectionException;
use Snowflake\Core\JSON;
use Snowflake\Core\Json;
use Snowflake\Exception\NotFindClassException;
use Snowflake\Snowflake;
use Swoole\Coroutine;
@@ -440,7 +440,7 @@ class Node extends Application
{
$this->restructure();
if (empty($this->callback)) {
return JSON::to(404, $node->_error ?? 'Page not found.');
return Json::to(404, $node->_error ?? 'Page not found.');
}
$requestParams = func_get_args();
if (func_num_args() > 0) {