Merge branch 'master' into backup

This commit is contained in:
win10 committed 2020-09-10 14:32:36 +08:00
commit 320bab1fa3
1 file changed
+5 -2
+5 -2
View File
@@ -289,10 +289,13 @@ class Index extends AdminBase
return json(['msg' => $msg, 'val' => 0]);;
}
$tc = new TC();
$temp = $tc->phoneSrc($list['phone']);
$temp = TC::withTrashed()->where('phone', $list['phone'])->find();
if($temp)
{
return json(['msg' => '手机号已经存在', 'val' => 0]);
if($temp->id != $id*1)
{
return json(['msg' => '手机号已经存在', 'val' => 0]);
}
}
$list['quanpin'] = trim(strtolower(str_replace(' ', '', $list['quanpin'])));