From ae402a3db72e5f0e6d608c6e837613a10572c5da Mon Sep 17 00:00:00 2001 From: lyt Date: Thu, 16 Aug 2018 14:25:37 +0800 Subject: [PATCH] =?UTF-8?q?trippest=20=E5=90=8C=E6=AD=A5:=20=E6=9C=AA?= =?UTF-8?q?=E8=AF=86=E5=88=AB=E7=9A=84=E7=BA=BF=E8=B7=AF=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E4=BB=A3=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trippestOrderSync/controllers/TulanduoApi.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php b/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php index 72c24bd4..288a36e1 100644 --- a/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php +++ b/webht/third_party/trippestOrderSync/controllers/TulanduoApi.php @@ -149,12 +149,12 @@ class TulanduoApi extends CI_Controller $PAG_Code = $pag_sub = null; preg_match('/[a-zA-Z]+\-[0-9\-]+/', $this->characet($vo['routeName'], "UTF-8"), $temp_array); if (empty($temp_array) && isset($pag_no_tmp[$vo['routeName']])) { - // 旧的数据没有线路代号 - log_message('error','未识别的线路名称 ' . $vo['orderId'] . " " . $vo['routeName'] . var_export($temp_array, 1)); $PAG_Code = $pag_no_tmp[$vo['routeName']]; $split_code = explode("-", $PAG_Code); $PAG_Code = $split_code[0] . "-" . $split_code[1]; isset($split_code[2]) ? $pag_sub=$split_code[2] : null; + // 旧的数据没有线路代号 + log_message('error',"未识别的线路名称 $PAG_Code" . $vo['orderId'] . " " . $vo['routeName'] . var_export($temp_array, 1)); } else { $PAG_Code = $pag_sub = null; $split_code = explode("-", $temp_array[0]); @@ -401,8 +401,6 @@ class TulanduoApi extends CI_Controller ); $this->Order_update->biz_confirmlineinfo_update($coli_update_column); /** BIZ_ConfirmLineDetail */ // nothing to update - // query latest order detail - $latest_order_detail = $this->Orders_model->get_orderinfo_detail($coli_id); /** INSERT */ /*BIZ_BookPeople*/ if ($this->Orders_model->bookpeople_exist($cold_sn) === array()) { @@ -431,6 +429,8 @@ class TulanduoApi extends CI_Controller $paytype = 15006; // 地接代收 $pay_currency = 'RMB'; $auto_text = "dataAutoEnter "; + // query latest order detail + $latest_order_detail = $this->Orders_model->get_orderinfo_detail($coli_id); // 删除旧的录入 $this->Orders_model->biz_groupaccountinfo_cut($coli_sn, $paytype); if (isset($detail_jsonResp->orderDetail->travelFees) && intval($latest_order_detail[0]->COLI_OPI_ID===435) ) {