刘桂岩 2 年之前
父節點
當前提交
0f54364550
共有 1 個文件被更改,包括 13 次插入12 次删除
  1. 13 12
      app/controller/Index.php

+ 13 - 12
app/controller/Index.php

@@ -61,22 +61,23 @@ class Index extends BaseController
         $type = 1;
         libxml_disable_entity_loader(false);
         $client = new \SoapClient("https://r.dalabs.cn/ReportService.asmx?wsdl");
-        $data = ['ReqInfo'=>[
-            'ClientID'=>Config::get('app')['dian']['ClientID'],
-            'Key'=>Config::get('app')['dian']['ClientGUID'],
-            'PageNO'=>1,
-            'CONDITION'=>[
-                'ClinicID'=>$code,
-                'StartDate'=>'',
-                'EndDate'=>''
-            ],
-            'Model'=>1
-    ]
+        $data = [
+            'QueryReports2'=>[
+                'ClientID'=>Config::get('app')['dian']['ClientID'],
+                'Key'=>Config::get('app')['dian']['ClientGUID'],
+                'PageNO'=>1,
+                'CONDITION'=>[
+                    'ClinicID'=>$code,
+                    'StartDate'=>'',
+                    'EndDate'=>''
+                ],
+                'Model'=>1
+            ]
         ];   //请求参数
 //        try{
             $a2x = new array2xml();
             $data = $a2x->toXml($data);
-            $data = "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"><s:Body><QueryReports2 xmlns=\"http://r.dalabs.cn\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\"><ReqInfo><ClientID>黑龙江昆仑上德体检中心</ClientID><Key>79A5CFF272A203F9E0530BF0000AE4D1</Key><PageNo>1</PageNo><Condition><ClinicID>12206060840019</ClinicID><StartDate/><EndDate/></Condition></ReqInfo></QueryReports2></s:Body></s:Envelope>";
+//            $data = "<s:Envelope xmlns:s=\"http://schemas.xmlsoap.org/soap/envelope/\"><s:Body><QueryReports2 xmlns=\"http://r.dalabs.cn\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\"><ReqInfo><ClientID>黑龙江昆仑上德体检中心</ClientID><Key>79A5CFF272A203F9E0530BF0000AE4D1</Key><PageNo>1</PageNo><Condition><ClinicID>12206060840019</ClinicID><StartDate/><EndDate/></Condition></ReqInfo></QueryReports2></s:Body></s:Envelope>";
 //            var_dump(htmlspecialchars($data));
 //            var_dump($data);
             $result = $client->QueryReports2(array('ReqInfo'=>$data));   //请求获取接口