|
|
|
|
@ -78,7 +78,7 @@ class api extends CI_Controller{
|
|
|
|
|
$doTicketsNum = 0;
|
|
|
|
|
$orderInfo->coliId = $itemId;
|
|
|
|
|
$priceInfo = $this->BIZ_train_model->get_paypal($itemId);
|
|
|
|
|
$orderInfo->totalPrice = $priceInfo->COLI_Price;
|
|
|
|
|
$orderInfo->totalPrice = (int) $priceInfo->COLI_Price;
|
|
|
|
|
|
|
|
|
|
$orderInfo->itinerary = array();
|
|
|
|
|
$coldSnArr = $this->BIZ_train_model->getAllColdSn($itemId);
|
|
|
|
|
@ -108,7 +108,7 @@ class api extends CI_Controller{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(!$priceInfo){
|
|
|
|
|
if(empty($priceInfo->GAI_SQJE)){
|
|
|
|
|
$orderInfo->topstatus = 'pending';
|
|
|
|
|
array_push($returnData->pending,$orderInfo);
|
|
|
|
|
}elseif($doTicketsNum == $itineraryNums){
|
|
|
|
|
|