|
@@ -31,8 +31,10 @@ class Index extends BaseController
|
|
'hospBarcode'=>$code,
|
|
'hospBarcode'=>$code,
|
|
'SelectType'=>$type
|
|
'SelectType'=>$type
|
|
]; //请求参数
|
|
]; //请求参数
|
|
|
|
+ Db::table('api_log')->insert(['type'=>1,'barcode'=>$code]);
|
|
try{
|
|
try{
|
|
$result = $client->GetDetailDataByHospBarcode3($data); //请求获取接口
|
|
$result = $client->GetDetailDataByHospBarcode3($data); //请求获取接口
|
|
|
|
+ Db::table('api_log')->insert(['type'=>2,'barcode'=>$code]);
|
|
$data = ((array)$result)['GetDetailDataByHospBarcode3Result'];
|
|
$data = ((array)$result)['GetDetailDataByHospBarcode3Result'];
|
|
$obj = simplexml_load_string("<data>".$data."</data>","SimpleXMLElement", LIBXML_NOCDATA);
|
|
$obj = simplexml_load_string("<data>".$data."</data>","SimpleXMLElement", LIBXML_NOCDATA);
|
|
if($obj)
|
|
if($obj)
|