|
|
|
@ -68,6 +68,7 @@ class TulanduoApi extends CI_Controller
|
|
|
|
|
// $this->userId = "18";
|
|
|
|
|
// $this->key = "d05c25e6e6c5d4898161e0aaf700d9c7";
|
|
|
|
|
mb_regex_encoding("UTF-8");
|
|
|
|
|
bcscale(4);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
@ -368,10 +369,27 @@ class TulanduoApi extends CI_Controller
|
|
|
|
|
$new_memo = trim($detail_jsonResp->orderDetail->orderRemark)=="" ? $old_memo : $old_memo . " orderRemark\r\n" . $detail_jsonResp->orderDetail->orderRemark . "\r\n";
|
|
|
|
|
$old_detail = mb_strstr($coli_orderdetailtext, " operations", true)!==false ? mb_strstr($coli_orderdetailtext, " operations", true) : $coli_orderdetailtext;
|
|
|
|
|
$new_detail = trim($allDetails_to_HT)=="" ? $old_detail : $old_detail . " operations\r\n" . $allDetails_to_HT . "\r\n";
|
|
|
|
|
// 团款总金额 美元币种
|
|
|
|
|
$travel_fee = 0;
|
|
|
|
|
$travel_fee_currency = 'RMB';
|
|
|
|
|
if (isset($detail_jsonResp->orderDetail->travelFees) ) {
|
|
|
|
|
foreach ($detail_jsonResp->orderDetail->travelFees as $ktf => $vtf) {
|
|
|
|
|
$travel_fee = bcadd($travel_fee, $vtf->sumMoney);
|
|
|
|
|
}
|
|
|
|
|
unset($vtf);
|
|
|
|
|
}
|
|
|
|
|
$travel_fee = $getInfo_byGroupCode!==null ?
|
|
|
|
|
(intval($getInfo_byGroupCode->COLI_OPI_ID)===435 ? $travel_fee : $getInfo_byGroupCode->COLI_Price)
|
|
|
|
|
: $travel_fee;
|
|
|
|
|
$travel_fee_currency = $getInfo_byGroupCode!==null ?
|
|
|
|
|
(intval($getInfo_byGroupCode->COLI_OPI_ID)===435 ? $travel_fee_currency : $getInfo_byGroupCode->COLI_CUrrency)
|
|
|
|
|
: $travel_fee_currency;
|
|
|
|
|
$coli_update_column = array(
|
|
|
|
|
"COLI_Memo" => substr($new_memo, 0, 400)
|
|
|
|
|
,"COLI_OrderDetailText" => $new_detail
|
|
|
|
|
,"COLI_State" => $coli_state
|
|
|
|
|
,"COLI_Price" => $travel_fee
|
|
|
|
|
,"COLI_CUrrency" => $travel_fee_currency
|
|
|
|
|
);
|
|
|
|
|
$this->Order_update->biz_confirmlineinfo_update($coli_update_column);
|
|
|
|
|
/** BIZ_ConfirmLineDetail */ // nothing to update
|
|
|
|
|