|
@@ -21,9 +21,9 @@ class Index extends BaseController
|
|
public function getReport()
|
|
public function getReport()
|
|
{
|
|
{
|
|
use_soap_error_handler(false);
|
|
use_soap_error_handler(false);
|
|
- $client = new \SoapClient('http://localhost:8085/server.php?wsdl'); //请求的ip localhost:8085为本机测试
|
|
|
|
|
|
+ $client = new \SoapClient('http://112.103.134.89:10020/server.php?wsdl'); //请求的ip localhost:8085为本机测试
|
|
$data = [
|
|
$data = [
|
|
- 'Barcode'=>'122030200248721'
|
|
|
|
|
|
+ 'Barcode'=>'12203310010001'
|
|
]; //请求参数
|
|
]; //请求参数
|
|
$a2x = new array2xml();
|
|
$a2x = new array2xml();
|
|
$data = $a2x->toXml($data); //参数转xml
|
|
$data = $a2x->toXml($data); //参数转xml
|