|
@@ -156,7 +156,7 @@ class Api extends ApiController
|
|
|
* @return void
|
|
|
* @throws Throwable
|
|
|
*/
|
|
|
- public function getShareCheck(HrServies $servies,PatientServies $patientServies): void
|
|
|
+ public function getRecogCheck(HrServies $servies,PatientServies $patientServies): void
|
|
|
{
|
|
|
$params = $this->request->post();
|
|
|
$params = $this->getDecryptData($params['data']);
|
|
@@ -164,10 +164,10 @@ class Api extends ApiController
|
|
|
{
|
|
|
$this->error('密文解析失败');
|
|
|
}
|
|
|
- $params = $patientServies->makeMappingData($params,'0','getShareCheck');
|
|
|
+ $params = $patientServies->makeMappingData($params,'0','getRecogCheck');
|
|
|
$ID_CARDNUM = $params['ID_CARDNUM'] ?? '';
|
|
|
- $ORGCODE = $params['ORGCODE'] ?? '';
|
|
|
- $ORGNAME = $params['ORGNAME'] ?? '';
|
|
|
+ $ORGCODE = '';//$params['ORGCODE'] ?? '';
|
|
|
+ $ORGNAME = '';//$params['ORGNAME'] ?? '';
|
|
|
$DOCTORNAME = '';//params['DOCTORNAME'] ?? '';
|
|
|
$DOCTORCODE = '';//$params['DOCTORCODE'] ?? '';
|
|
|
$DEPARTMENT = '';//$params['DEPTNAME'] ?? '';
|
|
@@ -179,7 +179,7 @@ class Api extends ApiController
|
|
|
$this->success('success', $data);
|
|
|
}
|
|
|
|
|
|
- public function getRecogCheck(HrServies $servies,PatientServies $patientServies): void
|
|
|
+ public function getShareCheck(HrServies $servies,PatientServies $patientServies): void
|
|
|
{
|
|
|
$params = $this->request->post();
|
|
|
$params = $this->getDecryptData($params['data']);
|
|
@@ -189,7 +189,12 @@ class Api extends ApiController
|
|
|
}
|
|
|
$params = $patientServies->makeMappingData($params,'0','getShareCheck');
|
|
|
$ID_CARDNUM = $params['ID_CARDNUM'] ?? '';
|
|
|
- $ORGCODE = $params['ORGCODE'] ?? '';
|
|
|
+ if(($params['HR_AREA'] ?? '') == 1)
|
|
|
+ {
|
|
|
+ $ORGCODE = $params['ORGCODE'] ?? '';
|
|
|
+ }else{
|
|
|
+ $ORGCODE = '';
|
|
|
+ }
|
|
|
$ORGNAME = $params['ORGNAME'] ?? '';
|
|
|
$DOCTORNAME = '';//$params['DOCTORNAME'] ?? '';
|
|
|
$DOCTORCODE = '';//$params['DOCTORCODE'] ?? '';
|