|
|
|
@ -17,7 +17,7 @@ class addorders extends CI_Controller{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function index(){
|
|
|
|
|
echo 'api manager';
|
|
|
|
|
exit('hello world');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//自动出票
|
|
|
|
@ -541,7 +541,8 @@ class addorders extends CI_Controller{
|
|
|
|
|
function ctripModel($data,$selectseat,$cold_sn){
|
|
|
|
|
$zwcode = $this->db_train_zw[$data['train']->Aircraft]; //座位简码
|
|
|
|
|
$zwname = $this->train_zw[$this->db_train_zw[$data['train']->Aircraft]]; //座位名称
|
|
|
|
|
$OrderNumber = ORDERUSER.time();
|
|
|
|
|
$microtime = get_microtime();
|
|
|
|
|
$OrderNumber = ORDERUSER.$microtime;
|
|
|
|
|
//拼接发送的报文
|
|
|
|
|
$PostData = array();
|
|
|
|
|
$time = date('Y-m-d H:i:s',time());
|
|
|
|
|