实名信息

This commit is contained in:
2025-12-15 09:14:30 +08:00
parent f8855c7191
commit ca48f2682c

View File

@@ -310,7 +310,7 @@ class UserData extends Model
return ['code' => 0, 'msg' => '该身份证实名已达上限!','data' =>null];
}
//查询是否已经提交过数据了
$is_real = db::name('user_auth')->where(['card_id' => $id_card,'is_real' => 1,'mobile' =>$user_mobile])->find();
$is_real = db::name('user_auth')->where(['card_id' => $id_card,'mobile' =>$user_mobile])->find();
if($is_real){
return ['code' => 0, 'msg' => '已经审核通过!请勿重复提交!','data' =>null];
}
@@ -319,7 +319,8 @@ class UserData extends Model
'mobile' => $user_mobile,
'real_name' => $real_name,
'card_id' => $id_card,
'is_real' => 3
'is_real' => 3,
'createtime' => time(),
];
db::name('user_auth')->insert($auth);
@@ -380,7 +381,7 @@ class UserData extends Model
}
}
//修改状态
$reslut = db::name('user_auth')->where('id' , $id)->update(['is_real' => 1]);
$reslut = db::name('user_auth')->where('id' , $id)->update(['is_real' => 1,'updatetime'=>time()]);
if(!$reslut){
return ['code' => 0, 'msg' => '实名失败','data' =>null];
}