|
|
@ -467,6 +467,36 @@ class api extends CI_Controller
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//没有全价的处理,默认加上一个全价
|
|
|
|
|
|
|
|
if ($j===0){
|
|
|
|
|
|
|
|
if (count($items->resourceList)>0){
|
|
|
|
|
|
|
|
$cacheData->queryResultList[$i]->resourceList[$j] = new stdClass();
|
|
|
|
|
|
|
|
$cacheData->queryResultList[$i]->resourceList[$j]->price = new stdClass();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$resourceList = $items->resourceList;
|
|
|
|
|
|
|
|
$resourceItems = $resourceList[0];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$cacheData->queryResultList[$i]->resourceList[$j]->price->adultPrice = $resourceItems->price->cabinClassFullPrice;
|
|
|
|
|
|
|
|
$cacheData->queryResultList[$i]->resourceList[$j]->price->childPrice = $resourceItems->price->childPrice;
|
|
|
|
|
|
|
|
$cacheData->queryResultList[$i]->resourceList[$j]->price->adultFacePrice = $resourceItems->price->cabinClassFullPrice;
|
|
|
|
|
|
|
|
$cacheData->queryResultList[$i]->resourceList[$j]->price->childFacePrice = $resourceItems->price->childFacePrice;
|
|
|
|
|
|
|
|
$cacheData->queryResultList[$i]->resourceList[$j]->price->cabinClassFullPrice = $resourceItems->price->cabinClassFullPrice;
|
|
|
|
|
|
|
|
$cacheData->queryResultList[$i]->resourceList[$j]->price->adultTax = $resourceItems->price->adultTax;
|
|
|
|
|
|
|
|
$k = 0;
|
|
|
|
|
|
|
|
$cacheData->queryResultList[$i]->resourceList[$j]->cabinList[$k] = new stdClass();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$cabinList = $resourceItems->cabinList;
|
|
|
|
|
|
|
|
$cabinListItems = $cabinList[0];
|
|
|
|
|
|
|
|
$cacheData->queryResultList[$i]->resourceList[$j]->cabinList[$k]->cabinClass = $cabinListItems->cabinClass;
|
|
|
|
|
|
|
|
$cacheData->queryResultList[$i]->resourceList[$j]->cabinList[$k]->cabinClassName = $cabinListItems->cabinClassName;
|
|
|
|
|
|
|
|
$cacheData->queryResultList[$i]->resourceList[$j]->cabinList[$k]->freeLuggage = $cabinListItems->freeLuggage;
|
|
|
|
|
|
|
|
$cacheData->queryResultList[$i]->resourceList[$j]->cabinList[$k]->freeLuggageUnit = $cabinListItems->freeLuggageUnit;
|
|
|
|
|
|
|
|
$cacheData->queryResultList[$i]->resourceList[$j]->cabinList[$k]->billType = $cabinListItems->billType;
|
|
|
|
|
|
|
|
$cacheData->queryResultList[$i]->resourceList[$j]->cabinList[$k]->seatStatus = $cabinListItems->seatStatus;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
$i++;
|
|
|
|
$i++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|