From 80594d7488f5048a4cceeacf410f7a48ebba43d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=B9=8F?= Date: Thu, 12 Sep 2024 10:13:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E8=A7=84=E5=88=99=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=BE=9C=E6=B5=B7=E8=87=AA=E5=8A=A8=E5=87=BA=E7=A5=A8?= =?UTF-8?q?=E3=80=82=EF=BC=88=E9=99=88=E5=AA=9B=E6=98=8E=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=8F=B7=E4=B8=8D=E5=B8=A6M=E7=9A=84=E7=94=A8=E6=BE=9C?= =?UTF-8?q?=E6=B5=B7=E5=87=BA=E7=A5=A8=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trainsystem/controllers/addorders.php | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/application/third_party/trainsystem/controllers/addorders.php b/application/third_party/trainsystem/controllers/addorders.php index 817cdc3e..bd5ffb84 100644 --- a/application/third_party/trainsystem/controllers/addorders.php +++ b/application/third_party/trainsystem/controllers/addorders.php @@ -298,7 +298,19 @@ class addorders extends CI_Controller{ //echo $cold_sn.'
'; log_message('error','自动出票提交:'.$coli_id.'('.$cold_sn.')'); - $this->booktickets($cold_sn,$bpe_sn,'','ctrip'); //调用出票 + //判断使用哪个供应商的出票 + $autoUse = "ctrip"; //默认携程 + $wl = $this->BIZ_train_model->get_operatorInfo($coli_id); + $lastChar = substr($coli_id, -1); + if ($lastChar!="M"){ + if(!empty($wl)){ + if($wl[0]->OPI_Name=="陈媛明"){ + $autoUse = "lanhai"; + } + } + } + //$string .= '接口使用:'.$coli_id.'('.$cold_sn.')'.$autoUse.''; + $this->booktickets($cold_sn,$bpe_sn,'',$autoUse); //调用出票 //$string .= '汉特订单号:'.$coli_id.'('.$cold_sn.')可以自动出票'; } }