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