|
|
|
|
@ -110,16 +110,17 @@ class PersonService
|
|
|
|
|
return \Yz::echoError1('调用HSM加密失败');
|
|
|
|
|
}
|
|
|
|
|
$arr['id_num']=$HSM_sfz['data'];
|
|
|
|
|
|
|
|
|
|
$cha = DB::select("SELECT a.*,b.sex,b.tel,b.status,c.org_name from appointment_record as a INNER JOIN
|
|
|
|
|
persons as b on a.person_id=b.id INNER JOIN medical_institution as c on a.org_id=c.id where a.id_card_num=?
|
|
|
|
|
and a.status in (1,2) and is_del=0",[$arr['id_num']]);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//dd($cha);
|
|
|
|
|
if(count($cha)>0){
|
|
|
|
|
|
|
|
|
|
//HSM解密
|
|
|
|
|
$HSM_tel =\App\Lib\HSM::HsmDecrypt($cha[0]->tel);
|
|
|
|
|
if($HSM_sfz['status']!=true){
|
|
|
|
|
|
|
|
|
|
if($HSM_tel['status']!=true){
|
|
|
|
|
return \Yz::echoError1('调用HSM解密失败');
|
|
|
|
|
}
|
|
|
|
|
$cha[0]->tel=$HSM_tel['data'];
|
|
|
|
|
@ -142,6 +143,7 @@ class PersonService
|
|
|
|
|
$cha[0]->bind_unit_id=$org_seting->bind_unit_id;
|
|
|
|
|
$cha[0]->bind_group_id=$org_seting->bind_group_id;
|
|
|
|
|
$cha[0]->bind_batch_id=$org_seting->bind_batch_id;
|
|
|
|
|
$cha[0]->bind_user_type=$org_seting->bind_user_type;
|
|
|
|
|
}
|
|
|
|
|
$cha_img =DB::table('appointment_img')->where('appointment_record_id',$cha[0]->id)->get();
|
|
|
|
|
//env('APP_URL')
|
|
|
|
|
|