|
- <?php
- /*
- Author:XM
- Compeny:Spiders Travel
- */
- require_once '../Common/Mysql.php';
- if (ALLOW_ORIGIN)
- header("Access-Control-Allow-Origin:*");
- $pdo=conn();
- $orderid=isset($_GET['order_id'])?$_GET['order_id']:0;
- $sql="CALL XM_ORDER_GET_CAR_DETAILS(1,".$orderid.")";
- $result=$pdo->query($sql);
- $rowset=$result->fetchAll(PDO::FETCH_ASSOC);
- $json=array('code'=>0,'info'=>'');
- $json['detailTicketInfo']=$rowset;
- if (is_array($json)){
- echo json_encode($json);
- }
- exit;
|