...
|
...
|
@@ -54,7 +54,8 @@ class AuditController extends AdminBaseController{ |
|
|
$uid = $_POST['uid'];
|
|
|
//判断身份证号不能重复
|
|
|
$id_number = Db::name('sale_audit') -> where('id',$id) -> find();
|
|
|
$chongfu = Db::name('sale_audit') -> where("id_number=".$id_number['id_number']." and is_audit=1") -> find();
|
|
|
$id_number_id = $id_number['id_number'];
|
|
|
$chongfu = Db::name('sale_audit') -> where("id_number='$id_number_id' and is_audit=1") -> find();
|
|
|
if(!empty($chongfu)){
|
|
|
$this -> error('身份证号重复');
|
|
|
}
|
...
|
...
|
|