From 8061bdc99a94a345ace300bccdf01d68c9a19d18 Mon Sep 17 00:00:00 2001 From: yanzai Date: Sat, 29 Jun 2024 22:37:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E9=A2=84=E7=BA=A6=E8=AE=B0?= =?UTF-8?q?=E5=BD=95=20=E8=BF=94=E5=9B=9E=E8=A7=A3=E5=AF=86=E5=90=8E?= =?UTF-8?q?=E7=9A=84=E6=98=8E=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Laravel/app/Services/mH5/PersonService.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Laravel/app/Services/mH5/PersonService.php b/Laravel/app/Services/mH5/PersonService.php index 33591f6..8c2006e 100644 --- a/Laravel/app/Services/mH5/PersonService.php +++ b/Laravel/app/Services/mH5/PersonService.php @@ -113,10 +113,23 @@ class PersonService $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=1",[$arr['id_num']]); + and a.status in (1,2) and is_del=0",[$arr['id_num']]); if(count($cha)>0){ + //HSM解密 + $HSM_tel =\App\Lib\HSM::HsmDecrypt($cha[0]->tel); + if($HSM_sfz['status']!=true){ + return \Yz::echoError1('调用HSM解密失败'); + } + $cha[0]->tel=$HSM_tel['data']; + + $HSM_sfz =\App\Lib\HSM::HsmDecrypt($cha[0]->id_card_num); + if($HSM_sfz['status']!=true){ + return \Yz::echoError1('调用HSM解密失败'); + } + $cha[0]->id_card_num=$HSM_sfz['data']; + $cha[0]->bind_check_type=null; $cha[0]->bind_unit_id=null; $cha[0]->bind_group_id=null; @@ -133,7 +146,7 @@ class PersonService $cha_img =DB::table('appointment_img')->where('appointment_record_id',$cha[0]->id)->get(); //env('APP_URL') foreach ($cha_img as $key=>$item){ - $cha_img[$key]->imgurl=env('APP_URL').$item->imgurl; + $cha_img[$key]->imgurl=env('ZHUAN_WANG').$item->imgurl; } $cha[0]->imgs=$cha_img; }