From 5775e7f02eb12164e3cc051ec20f2c7b6d5ce892 Mon Sep 17 00:00:00 2001 From: tping Date: Wed, 30 Dec 2020 19:54:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/SocietyInfoController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/SocietyInfoController.class.php b/Application/Admin/Controller/SocietyInfoController.class.php index d62f41bd5..df90c804e 100644 --- a/Application/Admin/Controller/SocietyInfoController.class.php +++ b/Application/Admin/Controller/SocietyInfoController.class.php @@ -401,7 +401,7 @@ class SocietyInfoController extends ThinkController $inserts[$k-2]['province'] = $v['A'] ?? ''; $inserts[$k-2]['city'] = $v['B'] ?? ''; $inserts[$k-2]['company_name'] = $v['C'] ?? ''; - if (strlen($inserts[$k-2]['company_name']) > 100) { + if (mb_strlen($inserts[$k-2]['company_name'], "utf-8") > 100) { $this->error("公司名太长".$k); } if (!$inserts[$k-2]['company_name']) { @@ -445,7 +445,7 @@ class SocietyInfoController extends ThinkController $this->error("流水太长".$k); } $inserts[$k-2]['address'] = $v['N'] ?? ''; - if (strlen($inserts[$k-2]['address']) > 100) { + if (mb_strlen($inserts[$k-2]['address'], 'utf-8') > 100) { $this->error("地址太长".$k); } $inserts[$k-2]['league_info'] = $v['O'] ?? '';