Merge pull request '优化' (#64) from feature/1228zgc into release

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/64
master
张谷成 4 years ago
commit 79872bbaf7

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

Loading…
Cancel
Save