master
tping 4 years ago
parent 9f329b7c34
commit 5775e7f02e

@ -401,7 +401,7 @@ class SocietyInfoController extends ThinkController
$inserts[$k-2]['province'] = $v['A'] ?? ''; $inserts[$k-2]['province'] = $v['A'] ?? '';
$inserts[$k-2]['city'] = $v['B'] ?? ''; $inserts[$k-2]['city'] = $v['B'] ?? '';
$inserts[$k-2]['company_name'] = $v['C'] ?? ''; $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); $this->error("公司名太长".$k);
} }
if (!$inserts[$k-2]['company_name']) { if (!$inserts[$k-2]['company_name']) {
@ -445,7 +445,7 @@ class SocietyInfoController extends ThinkController
$this->error("流水太长".$k); $this->error("流水太长".$k);
} }
$inserts[$k-2]['address'] = $v['N'] ?? ''; $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); $this->error("地址太长".$k);
} }
$inserts[$k-2]['league_info'] = $v['O'] ?? ''; $inserts[$k-2]['league_info'] = $v['O'] ?? '';

Loading…
Cancel
Save