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
+3 -3
View File
@@ -7,7 +7,7 @@ namespace HttpServer\Events\Utility;
use Closure;
use Exception;
use ReflectionException;
use Snowflake\Core\JSON;
use Snowflake\Core\Json;
use Snowflake\Exception\NotFindClassException;
use Snowflake\Snowflake;
@@ -26,7 +26,7 @@ class DataResolve
public static function pack($unpack, $data)
{
if (empty($unpack)) {
$params = JSON::encode($data);
$params = Json::encode($data);
} else {
$params = self::callbackResolve($unpack, null, null, $data);
}
@@ -49,7 +49,7 @@ class DataResolve
public static function unpack($unpack, $address, $port, $data)
{
if (empty($unpack)) {
$params = JSON::decode($data);
$params = Json::decode($data);
} else {
$params = self::callbackResolve($unpack, $address, $port, $data);
}