$username = I('username');
$names=M('mgc')->field('mgc')->select();
//取数据库中存在的敏感词库
$hei = array_column($names, 'mgc');
$blacklist="/".implode("|",$hei)."/i";
if(preg_match($blacklist, $username, $matches)){
$this->apiAjaxReturn("", false, '用户名中包含敏感词');
} $username = I('username');
$nam