根据规则添加澜海自动出票。(陈媛明订单号不带M的用澜海出票)

master
赵鹏 2 years ago
parent cf413290be
commit 80594d7488

@ -298,7 +298,19 @@ class addorders extends CI_Controller{
//echo $cold_sn.'<br>';
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 .= '<tr><td>接口使用:'.$coli_id.'('.$cold_sn.')'.$autoUse.'</td></tr>';
$this->booktickets($cold_sn,$bpe_sn,'',$autoUse); //调用出票
//$string .= '<tr><td>汉特订单号:'.$coli_id.'('.$cold_sn.')可以自动出票</td></tr>';
}
}

Loading…
Cancel
Save