From 66d9f2d65956e915ea32e7960d7dc80d2102f30c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 19 Mar 2021 15:43:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Http/HttpParams.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/HttpServer/Http/HttpParams.php b/HttpServer/Http/HttpParams.php index 405bb10f..4571b2c9 100644 --- a/HttpServer/Http/HttpParams.php +++ b/HttpServer/Http/HttpParams.php @@ -15,6 +15,7 @@ use JetBrains\PhpStorm\Pure; use ReflectionException; use Snowflake\Core\Help; use Snowflake\Core\Json; +use Snowflake\Core\Str; use Snowflake\Exception\NotFindClassException; use Snowflake\Snowflake; @@ -275,7 +276,7 @@ class HttpParams if (!is_string($string)) { $string = json_encode($string, JSON_UNESCAPED_UNICODE); } - $_length = strlen($string); + $_length = mb_strlen($string); if (is_array($length)) { if (count($length) < 2) { array_unshift($length, 0);