|
@@ -60,6 +60,10 @@ class Api extends ApiController
|
|
|
{
|
|
|
$params = $this->request->post();
|
|
|
$params = $this->getDecryptData($params['data']);
|
|
|
+ if(empty($params))
|
|
|
+ {
|
|
|
+ $this->error('密文解析失败');
|
|
|
+ }
|
|
|
$params = $patientServies->makeMappingData($params,'0','getRecogToken');
|
|
|
$data = $servies->getRecogToken($params);
|
|
|
$data = $patientServies->makeMappingData($data,'0','getRecogToken',2);
|
|
@@ -71,6 +75,10 @@ class Api extends ApiController
|
|
|
{
|
|
|
$params = $this->request->post();
|
|
|
$params = $this->getDecryptData($params['data']);
|
|
|
+ if(empty($params))
|
|
|
+ {
|
|
|
+ $this->error('密文解析失败');
|
|
|
+ }
|
|
|
$params = $patientServies->makeMappingData($params,'0','getRecogToken');
|
|
|
$data = $servies->getRecogToken($params);
|
|
|
$data = $patientServies->makeMappingData($data,'0','getRecogToken',2);
|
|
@@ -109,6 +117,10 @@ class Api extends ApiController
|
|
|
{
|
|
|
$params = $this->request->post();
|
|
|
$params = $this->getDecryptData($params['data']);
|
|
|
+ if(empty($params))
|
|
|
+ {
|
|
|
+ $this->error('密文解析失败');
|
|
|
+ }
|
|
|
$tokenData = $this->tokenData;
|
|
|
if(empty($tokenData))
|
|
|
{
|
|
@@ -125,6 +137,10 @@ class Api extends ApiController
|
|
|
{
|
|
|
$params = $this->request->post();
|
|
|
$params = $this->getDecryptData($params['data']);
|
|
|
+ if(empty($params))
|
|
|
+ {
|
|
|
+ $this->error('密文解析失败');
|
|
|
+ }
|
|
|
$tokenData = $this->tokenData;
|
|
|
if(empty($tokenData))
|
|
|
{
|
|
@@ -144,6 +160,10 @@ class Api extends ApiController
|
|
|
{
|
|
|
$params = $this->request->post();
|
|
|
$params = $this->getDecryptData($params['data']);
|
|
|
+ if(empty($params))
|
|
|
+ {
|
|
|
+ $this->error('密文解析失败');
|
|
|
+ }
|
|
|
$params = $patientServies->makeMappingData($params,'0','getShareCheck');
|
|
|
$ID_CARDNUM = $params['ID_CARDNUM'] ?? '';
|
|
|
$ORGCODE = $params['ORGCODE'] ?? '';
|
|
@@ -163,6 +183,10 @@ class Api extends ApiController
|
|
|
{
|
|
|
$params = $this->request->post();
|
|
|
$params = $this->getDecryptData($params['data']);
|
|
|
+ if(empty($params))
|
|
|
+ {
|
|
|
+ $this->error('密文解析失败');
|
|
|
+ }
|
|
|
$params = $patientServies->makeMappingData($params,'0','getShareCheck');
|
|
|
$ID_CARDNUM = $params['ID_CARDNUM'] ?? '';
|
|
|
$ORGCODE = $params['ORGCODE'] ?? '';
|
|
@@ -188,6 +212,10 @@ class Api extends ApiController
|
|
|
{
|
|
|
$params = $this->request->post();
|
|
|
$params = $this->getDecryptData($params['data']);
|
|
|
+ if(empty($params))
|
|
|
+ {
|
|
|
+ $this->error('密文解析失败');
|
|
|
+ }
|
|
|
$params = $patientServies->makeMappingData($params,'0','getRecogData');
|
|
|
$ID_CARDNUM = $params['ID_CARDNUM'] ?? '';
|
|
|
$ORGCODE = $params['ORGCODE'] ?? '';
|
|
@@ -212,6 +240,10 @@ class Api extends ApiController
|
|
|
{
|
|
|
$params = $this->request->post();
|
|
|
$params = $this->getDecryptData($params['data']);
|
|
|
+ if(empty($params))
|
|
|
+ {
|
|
|
+ $this->error('密文解析失败');
|
|
|
+ }
|
|
|
$params = $patientServies->makeMappingData($params,'0','saveRecogResult');
|
|
|
$HR_RECORDS = $params['HR_RECORDS'] ?? array();
|
|
|
$servies->saveRecogResult($HR_RECORDS);
|