|
|
@@ -106,7 +106,7 @@ class User extends BaseController |
|
|
|
try { |
|
|
|
$User_model = new \app\admin\model\User(); |
|
|
|
//去除特殊字符 |
|
|
|
$_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, '账号已存在'); |