|
|
@ -487,8 +487,8 @@ class innerTrainSearch extends CI_Controller{
|
|
|
|
|
|
|
|
|
|
|
|
// echo $timestampInMilliseconds;
|
|
|
|
// echo $timestampInMilliseconds;
|
|
|
|
|
|
|
|
|
|
|
|
echo($ResponseJson);
|
|
|
|
// echo($ResponseJson);
|
|
|
|
die();
|
|
|
|
// die();
|
|
|
|
|
|
|
|
|
|
|
|
$api_responsive_time = $api_end_time - $api_start_time;
|
|
|
|
$api_responsive_time = $api_end_time - $api_start_time;
|
|
|
|
|
|
|
|
|
|
|
@ -537,19 +537,19 @@ class innerTrainSearch extends CI_Controller{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($Seats->seatTypeName == '高级软卧上' || $Seats->seatTypeName == '高级软卧'){
|
|
|
|
if(strstr($Seats->seatTypeName,'高级软卧')){
|
|
|
|
$gjrwXiaPrice = $Seats->ticketPrice * 10;
|
|
|
|
$gjrwXiaPrice = $Seats->ticketPrice * 10;
|
|
|
|
$SeaType .= '"6":"'.$gjrwXiaPrice.'","A6":"¥'.$Seats->ticketPrice.'",';
|
|
|
|
$SeaType .= '"6":"'.$gjrwXiaPrice.'","A6":"¥'.$Seats->ticketPrice.'",';
|
|
|
|
$gjrwNum = $ticketLeft;
|
|
|
|
$gjrwNum = $ticketLeft;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($Seats->seatTypeName == '软卧上' || $Seats->seatTypeName == '软卧' ){
|
|
|
|
if(strstr($Seats->seatTypeName,'软卧') ){
|
|
|
|
$rwPrice = $Seats->ticketPrice * 10;
|
|
|
|
$rwPrice = $Seats->ticketPrice * 10;
|
|
|
|
$SeaType .= '"4":"'.$rwPrice.'","A4":"¥'.$Seats->ticketPrice.'",';
|
|
|
|
$SeaType .= '"4":"'.$rwPrice.'","A4":"¥'.$Seats->ticketPrice.'",';
|
|
|
|
$rwNum = $ticketLeft;
|
|
|
|
$rwNum = $ticketLeft;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($Seats->seatTypeName == '一等双软上' || $Seats->seatTypeName=='一等卧'){
|
|
|
|
if(strstr($Seats->seatTypeName,'一等卧')){
|
|
|
|
$SeaType .= '"YDW":"¥'.$Seats->ticketPrice.'",';
|
|
|
|
$SeaType .= '"YDW":"¥'.$Seats->ticketPrice.'",';
|
|
|
|
$ydwNum = $ticketLeft;
|
|
|
|
$ydwNum = $ticketLeft;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -592,18 +592,18 @@ class innerTrainSearch extends CI_Controller{
|
|
|
|
$swzNum = $ticketLeft;
|
|
|
|
$swzNum = $ticketLeft;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($Seats->seatTypeName == '硬卧上' || $Seats->seatTypeName == '硬卧'){
|
|
|
|
if(strstr($Seats->seatTypeName,'硬卧')){
|
|
|
|
$ywPrice = $Seats->ticketPrice * 10;
|
|
|
|
$ywPrice = $Seats->ticketPrice * 10;
|
|
|
|
$SeaType .= '"3":"'.$ywPrice.'","A3":"¥'.$Seats->ticketPrice.'",';
|
|
|
|
$SeaType .= '"3":"'.$ywPrice.'","A3":"¥'.$Seats->ticketPrice.'",';
|
|
|
|
$ywNum = $ticketLeft;
|
|
|
|
$ywNum = $ticketLeft;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($Seats->seatTypeName == '二等双软上' || $Seats->seatTypeName == '二等卧'){
|
|
|
|
if(strstr($Seats->seatTypeName, '二等卧')){
|
|
|
|
$SeaType .= '"EDW":"¥'.$Seats->ticketPrice.'",';
|
|
|
|
$SeaType .= '"EDW":"¥'.$Seats->ticketPrice.'",';
|
|
|
|
$erwNum = $ticketLeft;
|
|
|
|
$erwNum = $ticketLeft;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if($Seats->seatTypeName == '动卧上' || $Seats->seatTypeName == '动卧'){
|
|
|
|
if(strstr($Seats->seatTypeName,'动卧')){
|
|
|
|
$SeaType .= '"F":"¥'.$Seats->ticketPrice.'",';
|
|
|
|
$SeaType .= '"F":"¥'.$Seats->ticketPrice.'",';
|
|
|
|
$dwNum = $ticketLeft;
|
|
|
|
$dwNum = $ticketLeft;
|
|
|
|
}
|
|
|
|
}
|
|
|
|