diff --git a/application/third_party/trainsystem/controllers/innerTrainSearch.php b/application/third_party/trainsystem/controllers/innerTrainSearch.php index 6dfefc51..8d3e72bf 100644 --- a/application/third_party/trainsystem/controllers/innerTrainSearch.php +++ b/application/third_party/trainsystem/controllers/innerTrainSearch.php @@ -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; }