|
@@ -420,6 +420,23 @@ class My extends Core
|
|
|
}
|
|
|
|
|
|
$update['idcard_path'] = Dever::input('idcard_path');
|
|
|
+ if($update['idcard_path']){
|
|
|
+ $idcard_path = (array)json_decode($update['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('身份证背面已过期');
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
if ($info['type'] == 2) {
|
|
|
$update['company_name'] = Dever::input('company_name');
|