|
@@ -20,22 +20,22 @@ class Index extends BaseController
|
|
|
}
|
|
|
public function getReport()
|
|
|
{
|
|
|
- ini_set('default_socket_timeout', 600);
|
|
|
libxml_disable_entity_loader(false);
|
|
|
- $opts = array(
|
|
|
- 'ssl' => array(
|
|
|
- 'verify_peer' => false
|
|
|
- ),
|
|
|
- 'https' => array(
|
|
|
- 'curl_verify_ssl_peer' => false,
|
|
|
- 'curl_verify_ssl_host' => false
|
|
|
- )
|
|
|
- );
|
|
|
- $streamContext = stream_context_create($opts);
|
|
|
- $client = new \SoapClient("http://112.103.134.89:10020/server.php?wsdl",
|
|
|
- array(
|
|
|
- 'stream_context' => $streamContext
|
|
|
- ));
|
|
|
+// $opts = array(
|
|
|
+// 'ssl' => array(
|
|
|
+// 'verify_peer' => false
|
|
|
+// ),
|
|
|
+// 'https' => array(
|
|
|
+// 'curl_verify_ssl_peer' => false,
|
|
|
+// 'curl_verify_ssl_host' => false
|
|
|
+// )
|
|
|
+// );
|
|
|
+// $streamContext = stream_context_create($opts);
|
|
|
+// $client = new \SoapClient("http://112.103.134.89:10020/server.php?wsdl",
|
|
|
+// array(
|
|
|
+// 'stream_context' => $streamContext
|
|
|
+// ));
|
|
|
+ $client = new \SoapClient("http://112.103.134.89:10020/server.php?wsdl")
|
|
|
$data = [
|
|
|
'Barcode'=>'12203310010001'
|
|
|
]; //请求参数
|