diff --git a/application/third_party/trainsystem/controllers/addorders.php b/application/third_party/trainsystem/controllers/addorders.php index b65392cb..b3ec4042 100644 --- a/application/third_party/trainsystem/controllers/addorders.php +++ b/application/third_party/trainsystem/controllers/addorders.php @@ -530,7 +530,7 @@ class addorders extends CI_Controller{ $add_data->endtime = date('H:i',strtotime($data['train']->ArrivalTime)); $add_data->runtime = (strtotime($data['train']->ArrivalTime) - strtotime($data['train']->DepartureTime)) / 60; $add_data->channel = 'tuniu'; - $add_data->isauto = 0; + $add_data->isauto = $this->isauto; $this->train_system_model->add_orders($add_data); echo json_encode($reback); @@ -667,7 +667,6 @@ class addorders extends CI_Controller{ $add_data->channel = 'ctrip'; $add_data->isauto = 0; - //存储到数据库 $this->train_system_model->add_orders($add_data);