刘桂岩 3 years ago
parent
commit
63f000a2f6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/controller/Index.php

+ 1 - 1
app/controller/Index.php

@@ -39,7 +39,7 @@ class Index extends BaseController
         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($requestUrl, $options);
         $data = [
             'Barcode'=>'12203310010001'
         ];   //请求参数