|
|
@@ -110,7 +110,7 @@ class User extends BaseController |
|
|
|
// tojson(202, '不可使用非法字符'); |
|
|
|
// } |
|
|
|
//去除空格 |
|
|
|
$_POST['username']=str_replace(array(" ","!","@","#","$","%","^","&","*","(",")","{","}",";","'",",",".","/",":","<",">","?"),'', $_POST['username']); |
|
|
|
$_POST['username']=str_replace(array(" ","!","@","#","$","%","^","&","*","(",")","{","}",";","'",",",".","/",":","<",">","?","~","`",".","-","+","-","_","="),'', $_POST['username']); |
|
|
|
$check = $User_model->where(['username' => $_POST['username']])->value('id'); |
|
|
|
if ($check) { |
|
|
|
tojson(10000, '账号已存在'); |