|
@@ -16,7 +16,7 @@ class Index extends BaseController
|
|
|
|
|
|
public function hello($name = 'ThinkPHP6')
|
|
|
{
|
|
|
-
|
|
|
+ $this->getPdf('12206060840002');
|
|
|
return 'hello,' . $name;
|
|
|
}
|
|
|
public function getReport()
|
|
@@ -63,12 +63,13 @@ class Index extends BaseController
|
|
|
$client = new \SoapClient("https://r.dalabs.cn/ReportService.asmx?wsdl");
|
|
|
$data = [
|
|
|
'ClientID'=>Config::get('app')['dian']['ClientID'],
|
|
|
- 'ClientGUID'=>Config::get('app')['dian']['ClientGUID'],
|
|
|
- 'BarCode'=>$code,
|
|
|
+ 'Key'=>Config::get('app')['dian']['ClientGUID'],
|
|
|
+ 'PageNO'=>1,
|
|
|
+ 'ClinicID'=>$code,
|
|
|
'model'=>$type
|
|
|
]; //请求参数
|
|
|
try{
|
|
|
- $result = $client->GetReportInfo($data); //请求获取接口
|
|
|
+ $result = $client->QueryReports2($data); //请求获取接口
|
|
|
Db::table('dianapiinfo')->where('Barcode',$code)->update(['pdf_xml'=>$result]);
|
|
|
$data = ((array)$result)['GetReportInfoResult'];
|
|
|
$obj = simplexml_load_string("<data>".$data."</data>","SimpleXMLElement", LIBXML_NOCDATA);
|