eee
This commit is contained in:
+26
-2
@@ -71,7 +71,6 @@ if (!function_exists('instance')) {
|
||||
if (!function_exists('call')) {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @param $handler
|
||||
* @param mixed ...$params
|
||||
@@ -250,6 +249,32 @@ if (!function_exists('isUrl')) {
|
||||
|
||||
}
|
||||
|
||||
if (!function_exists('msgpack_pack')) {
|
||||
|
||||
|
||||
/**
|
||||
* @param $content
|
||||
* @return string
|
||||
*/
|
||||
function msgpack_pack($content): string
|
||||
{
|
||||
return serialize($content);
|
||||
}
|
||||
|
||||
}
|
||||
if (!function_exists('msgpack_unpack')) {
|
||||
|
||||
|
||||
/**
|
||||
* @param $content
|
||||
* @return mixed
|
||||
*/
|
||||
function msgpack_unpack($content): mixed
|
||||
{
|
||||
return unserialize($content);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (!function_exists('request')) {
|
||||
|
||||
@@ -307,7 +332,6 @@ if (!function_exists('split_request_uri')) {
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (!function_exists('redis')) {
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user