刘桂岩 3 years ago
parent
commit
a07576d902
2 changed files with 3 additions and 2 deletions
  1. 1 0
      app/controller/DiAn.php
  2. 2 2
      app/controller/Index.php

+ 1 - 0
app/controller/DiAn.php

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

+ 2 - 2
app/controller/Index.php

@@ -20,7 +20,7 @@ class Index extends BaseController
     }
     public function getReport()
     {
-
+        ini_set('default_socket_timeout', 600);
         libxml_disable_entity_loader(false);
         $opts = array(
             'ssl'   => array(
@@ -32,7 +32,7 @@ class Index extends BaseController
             )
         );
         $streamContext = stream_context_create($opts);
-        $client = new \SoapClient("http://112.103.134.89:10020/server.php?wsdl",
+        $client = new \SoapClient("http://192.168.0.207:10020/server.php?wsdl",
             array(
                 'stream_context'    => $streamContext
             ));