diff --git a/application/third_party/trainsystem/controllers/innerTrainSearch.php b/application/third_party/trainsystem/controllers/innerTrainSearch.php index 31669b11..7844ffb5 100644 --- a/application/third_party/trainsystem/controllers/innerTrainSearch.php +++ b/application/third_party/trainsystem/controllers/innerTrainSearch.php @@ -331,7 +331,7 @@ class innerTrainSearch extends CI_Controller{ $rwNum = $Seats->ticketLeft; } - if($Seats->seatName == '一等双软上'){ + if($Seats->seatName == '一等双软上' || $seats->seatName=='一等卧'){ $SeaType .= '"YDW":"¥'.$Seats->maxPrice.'",'; $ydwNum = $Seats->ticketLeft; } @@ -380,7 +380,7 @@ class innerTrainSearch extends CI_Controller{ $ywNum = $Seats->ticketLeft; } - if($Seats->seatName == '二等双软上'){ + if($Seats->seatName == '二等双软上' || $Seats->seatName == '二等卧'){ $SeaType .= '"EDW":"¥'.$Seats->maxPrice.'",'; $erwNum = $Seats->ticketLeft; } @@ -572,12 +572,12 @@ class innerTrainSearch extends CI_Controller{ $TimeStamp = date("Y-m-d H:i:s"); //$TimeStamp = time(); $serviceName = "train.getAllStations"; - // $companyId = "4003171843"; - // $key = "hajkrtbc"; + $companyId = COMPANYID; + $key = CTRIPKEY; - /** 测试服务器 */ - $companyId = "1503141150"; - $key = "hajkrtbcc"; + // /** 测试服务器 */ + // $companyId = "1503141150"; + // $key = "hajkrtbcc"; $strSign = $TimeStamp.$serviceName.$companyId.$key;