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.')可以自动出票'; } }