澜海火车票接口上线

master
赵鹏 1 year ago
parent c88477d5bc
commit b5e58abbdb

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

Loading…
Cancel
Save