刘桂岩 2 tahun lalu
induk
melakukan
ff4a1fb006
1 mengubah file dengan 9 tambahan dan 12 penghapusan
  1. 9 12
      app/controller/Index.php

+ 9 - 12
app/controller/Index.php

@@ -62,22 +62,19 @@ class Index extends BaseController
         libxml_disable_entity_loader(false);
         $client = new \SoapClient("https://r.dalabs.cn/ReportService.asmx?wsdl");
         $data = [
-            'QueryReports2'=>[
-                'ClientID'=>Config::get('app')['dian']['ClientID'],
-                'Key'=>Config::get('app')['dian']['ClientGUID'],
-                'PageNO'=>1,
-                'CONDITION'=>[
-                    'ClinicID'=>$code,
-                    'StartDate'=>'',
-                    'EndDate'=>''
-                ],
-                'Model'=>1
-            ]
+            '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>";
 //            var_dump(htmlspecialchars($data));
 //            var_dump($data);
             $result = $client->QueryReports2(array('ReqInfo'=>$data));   //请求获取接口