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
@@ -10,7 +10,7 @@ use HttpServer\IInterface\Task;
use ReflectionException;
use Snowflake\Abstracts\Config;
use Snowflake\Core\JSON;
use Snowflake\Core\Json;
use Snowflake\Di\Container;
use Snowflake\Exception\ComponentException;
use Snowflake\Exception\NotFindClassException;
@@ -257,7 +257,7 @@ class Snowflake
return false;
}
if (!is_string($data)) {
$data = JSON::encode($data);
$data = Json::encode($data);
}
return $server->push($fd, $data);
}