|
|
|
@ -3,6 +3,8 @@
|
|
|
|
|
if (!defined('BASEPATH'))
|
|
|
|
|
exit('No direct script access allowed');
|
|
|
|
|
|
|
|
|
|
define('PAY_TO_AGENCY',15020);
|
|
|
|
|
|
|
|
|
|
class TulanduoApi extends CI_Controller
|
|
|
|
|
{
|
|
|
|
|
public $special_route = array(
|
|
|
|
@ -439,6 +441,7 @@ class TulanduoApi extends CI_Controller
|
|
|
|
|
$coli_update_column["COLI_Price"] = $travel_fee;
|
|
|
|
|
$coli_update_column["COLI_CUrrency"] = $travel_fee_currency;
|
|
|
|
|
$coli_update_column["COLI_GroupCode"] = substr(trim_str($detail_jsonResp->orderDetail->agcOrderNo), 0, 49);
|
|
|
|
|
$coli_update_column["COLI_sourcetype"] = empty($this->city_info[$detail_jsonResp->orderDetail->operationDep]) ? 32090 : $this->city_info[$detail_jsonResp->orderDetail->operationDep]['COLI_sourcetype'];
|
|
|
|
|
}
|
|
|
|
|
$this->Order_update->biz_confirmlineinfo_update($coli_update_column);
|
|
|
|
|
/**
|
|
|
|
@ -491,7 +494,7 @@ class TulanduoApi extends CI_Controller
|
|
|
|
|
$latest_order_detail = $this->Orders_model->get_orderinfo_detail($coli_id);
|
|
|
|
|
/** BIZ_GroupAccountInfo */
|
|
|
|
|
// 团款, 只有其他社的订单, 目的地项目组的团款已经直接收入海纳账户
|
|
|
|
|
$paytype = 15020; // 地接代收
|
|
|
|
|
$paytype = PAY_TO_AGENCY; // 地接代收
|
|
|
|
|
$pay_currency = 'RMB';
|
|
|
|
|
$auto_text = "dataAutoEnter ";
|
|
|
|
|
// 删除旧的录入
|
|
|
|
@ -975,7 +978,7 @@ class TulanduoApi extends CI_Controller
|
|
|
|
|
$this->Orders_model->BIZ_COLI_OrderDetailText = "来自图兰朵系统同步" . $list_ele["orderId"] . ";线路:" . $list_ele['routeName'] . "; 团名: " . $list_ele['agcOrderNo'];
|
|
|
|
|
$this->Orders_model->BIZ_COLI_GUT_SN = $this->Orders_model->BIZ_GUT_SN ? $this->Orders_model->BIZ_GUT_SN : null;
|
|
|
|
|
$this->Orders_model->BIZ_COLI_OPI_ID = 435;
|
|
|
|
|
$this->Orders_model->BIZ_COLI_PayManner = 15006;
|
|
|
|
|
$this->Orders_model->BIZ_COLI_PayManner = PAY_TO_AGENCY;
|
|
|
|
|
return $this->Orders_model->biz_confirm_save();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|