刘桂岩 3 years ago
parent
commit
60e80c3804
2 changed files with 6 additions and 6 deletions
  1. 1 1
      app/controller/DiAn.php
  2. 5 5
      app/controller/Index.php

+ 1 - 1
app/controller/DiAn.php

@@ -21,7 +21,7 @@ class DiAn extends BaseController
 
     public static function getDiAnData($data)
     {
-        ini_set('default_socket_timeout', 600);
+        return $data;
         $xml = $data;
         $obj = simplexml_load_string($xml,"SimpleXMLElement", LIBXML_NOCDATA);
         $conn = mysqli_connect('localhost','root','');

+ 5 - 5
app/controller/Index.php

@@ -35,11 +35,11 @@ class Index extends BaseController
 //            array(
 //                'stream_context'    => $streamContext
 //            ));
-//        $client = new \SoapClient("http://112.103.134.89:10020/server.php?wsdl");
-        use_soap_error_handler(false);
-        $requestUrl = "http://112.103.134.89:10020/server.php?wsdl";
-        $options = array("trace" => 1, "cache_wsdl" => WSDL_CACHE_NONE,"exception" => 0,'location'=>'http://112.103.134.89:10020/server.php?wsdl','uri'=>'http://tempuri.org/');
-        $client = new \SoapClient($requestUrl, $options);
+        $client = new \SoapClient("http://112.103.134.89:10020/server.php?wsdl");
+//        use_soap_error_handler(false);
+//        $requestUrl = "localhost:8085/server.php?wsdl";
+//        $options = array("trace" => 1, "cache_wsdl" => WSDL_CACHE_NONE,"exception" => 0,'location'=>'localhost:8085/server.php?wsdl','uri'=>'http://tempuri.org/');
+//        $client = new \SoapClient($requestUrl, $options);
         $data = [
             'Barcode'=>'12203310010001'
         ];   //请求参数