刘桂岩 3 年之前
父节点
当前提交
026d963f97
共有 2 个文件被更改,包括 3 次插入1 次删除
  1. 1 1
      app/controller/DiAn.php
  2. 2 0
      app/controller/Index.php

+ 1 - 1
app/controller/DiAn.php

@@ -21,12 +21,12 @@ class DiAn extends BaseController
 
     public static function getDiAnData($data)
     {
-        return $data;
         $xml = $data;
         $obj = simplexml_load_string($xml,"SimpleXMLElement", LIBXML_NOCDATA);
         $conn = mysqli_connect('localhost','root','');
         $a = mysqli_select_db($conn,'tijianzhongxin');
         $sql = "select * from dianApiInfo where Barcode='$obj'";
+        return $sql;
         $result = mysqli_query($conn, $sql);
         $info = mysqli_fetch_row($result);
         if(!empty($info))

+ 2 - 0
app/controller/Index.php

@@ -36,6 +36,8 @@ class Index extends BaseController
 //                'stream_context'    => $streamContext
 //            ));
         $client = new \SoapClient("http://112.103.134.89:10020/server.php?wsdl");
+
+//        $client = new \SoapClient('http://localhost:8085/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/');