|
|
|
|
@ -118,6 +118,33 @@ class UserController extends Controller
|
|
|
|
|
],
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
$id_number = $res['ID_No'] ?? '';
|
|
|
|
|
$birthplace = '';
|
|
|
|
|
if ($id_type_show == 0 && mb_strlen($id_number, 'utf-8') == 18) {
|
|
|
|
|
$sheng = substr($id_number, 0, 2);
|
|
|
|
|
$shi = substr($id_number, 0, 4);
|
|
|
|
|
$xian = substr($id_number, 0, 6);
|
|
|
|
|
$address_data_str = file_get_contents(public_path('assets/address.json'));
|
|
|
|
|
$address_data = json_decode($address_data_str, true);
|
|
|
|
|
foreach ($address_data as $ak => $av) {
|
|
|
|
|
if ($av['code'] == $sheng) {
|
|
|
|
|
$birthplace = $birthplace . $av['name'];
|
|
|
|
|
foreach ($av['children'] as $aak => $aav) {
|
|
|
|
|
if ($aav['code'] == $shi) {
|
|
|
|
|
$birthplace = $birthplace . $aav['name'];
|
|
|
|
|
foreach ($aav['children'] as $aaak => $aaav) {
|
|
|
|
|
if ($aav['code'] == $xian) {
|
|
|
|
|
$birthplace = $birthplace . $aaav['name'];
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
$person_info = [
|
|
|
|
|
'国籍' => $res['MZ'] == '外国血统' ? '外国' : '中国',
|
|
|
|
|
'证件类型' => $id_type_show,
|
|
|
|
|
@ -134,7 +161,7 @@ class UserController extends Controller
|
|
|
|
|
'工作单位' => "",
|
|
|
|
|
'文化程度' => "",
|
|
|
|
|
'职业' => "",
|
|
|
|
|
'出生地' => "",
|
|
|
|
|
'出生地' => $birthplace,
|
|
|
|
|
'配偶姓名' => "",
|
|
|
|
|
'配偶证件类型' => 0,
|
|
|
|
|
'配偶证件号' => "",
|
|
|
|
|
|