|
@@ -222,6 +222,26 @@ class My extends Core
|
|
|
Dever::alert('请上传身份证背面照片');
|
|
|
}
|
|
|
|
|
|
+ $where['idcard_path'] = Dever::input('idcard_path');
|
|
|
+ if($where['idcard_path']){
|
|
|
+ $data['idcard_path'] = $where['idcard_path'];
|
|
|
+ $idcard_path = (array)json_decode($data['idcard_path']);
|
|
|
+ if($idcard_path['face']){
|
|
|
+ $rest = (array)$idcard_path['face'];
|
|
|
+ if($this->user['name'] != $rest['name'] || $this->user['idcard'] != $rest['idNumber']){
|
|
|
+ Dever::alert('姓名或身份证号不匹配');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if($idcard_path['back']){
|
|
|
+ $rest = (array)$idcard_path['back'];
|
|
|
+ $date = explode('-',$rest['validPeriod']);
|
|
|
+ $cdate = strtotime(str_replace('.','-',$date[1]));
|
|
|
+ if(time()>=$cdate){
|
|
|
+ Dever::alert('身份证背面已过期');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$where['email'] = Dever::input('email');
|
|
|
if (!$where['email']) {
|
|
|
Dever::alert('请填写邮箱');
|