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'] ?? '';