...
|
...
|
@@ -52,6 +52,12 @@ class AuditController extends AdminBaseController{ |
|
|
$id = $_POST['id'];
|
|
|
$time = time();
|
|
|
$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();
|
|
|
if(!empty($chongfu)){
|
|
|
$this -> error('身份证号重复');
|
|
|
}
|
|
|
Db::name('my_user') -> where('uid',$uid) -> update(['status'=>2,'audit_time'=>$time]);
|
|
|
$data = Db::name('sale_audit') -> where('id',$id) -> update(['is_audit'=>1]);
|
|
|
if($data){
|
...
|
...
|
|