|
@@ -483,12 +483,6 @@ class LinkService extends ZskkDefaultService {
|
|
|
|
|
|
|
|
public function getAnotherPatientList($param)
|
|
public function getAnotherPatientList($param)
|
|
|
{
|
|
{
|
|
|
- $param['code'] = openssl_decrypt(base64_decode($param['code']), 'AES-128-ECB', Config::get('chengde')['key']);
|
|
|
|
|
-// $param['institution_id'] = openssl_decrypt(base64_decode($param['institution_id']), 'AES-128-ECB', Config::get('chengde')['key']);
|
|
|
|
|
- if(empty($param['code']))
|
|
|
|
|
- {
|
|
|
|
|
- $this->throwError('数据解密失败','1210');
|
|
|
|
|
- }
|
|
|
|
|
if(empty($param['type']) || empty($param['code']))
|
|
if(empty($param['type']) || empty($param['code']))
|
|
|
{
|
|
{
|
|
|
$this->throwError('没有相应的类型','1211');
|
|
$this->throwError('没有相应的类型','1211');
|
|
@@ -625,7 +619,10 @@ class LinkService extends ZskkDefaultService {
|
|
|
$info[$k]['insConfig'] = $value;
|
|
$info[$k]['insConfig'] = $value;
|
|
|
$info[$k]['config_number'] = $v[$key];
|
|
$info[$k]['config_number'] = $v[$key];
|
|
|
}
|
|
}
|
|
|
- $info[$k]['age'] = str_replace('W','周',str_replace('D','天',str_replace('M','月',str_replace('Y','岁',ltrim($info[$k]['age'],'0')))));
|
|
|
|
|
|
|
+ if(!empty($v['age']))
|
|
|
|
|
+ {
|
|
|
|
|
+ $info[$k]['age'] = str_replace('W','周',str_replace('D','天',str_replace('M','月',str_replace('Y','岁',ltrim($info[$k]['age'],'0')))));
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
return $info;
|
|
return $info;
|