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) ) {