|
@@ -80,14 +80,15 @@ class Index extends BaseController
|
|
|
$result = $client->QueryReports2(array('ReqInfo'=>[
|
|
|
'PageNo'=>1,
|
|
|
'ClientID'=>Config::get('app')['dian']['ClientID'],
|
|
|
- 'Key'=>Config::get('app')['dian']['ClientGUID'],'Condition'=>[
|
|
|
+ 'Key'=>Config::get('app')['dian']['ClientGUID'],
|
|
|
+ 'Condition'=>[
|
|
|
'ClinicID'=>$code,
|
|
|
'StartDate'=>'',
|
|
|
'EndDate'=>''
|
|
|
]])); //请求获取接口
|
|
|
Db::table('dianapiinfo')->where('Barcode',$code)->update(['pdf_xml'=>$result]);
|
|
|
$data = ((array)$result)['QueryReports2Result'];
|
|
|
- var_dump($data);die;
|
|
|
+ var_dump(json_decode(json_encode($data),true));die;
|
|
|
$obj = simplexml_load_string("<data>".$data."</data>","SimpleXMLElement", LIBXML_NOCDATA);
|
|
|
Db::table('api_log')->insert(['type'=>4,'barcode'=>$code]);
|
|
|
if($obj)
|