作者 郭文星

123

... ... @@ -988,6 +988,7 @@ class Car extends Base
$departure_time=substr($reservation_time,0,16);
$departure_time = strtotime($departure_time);
$phone = $this->request->param("phone");//联系电话
$position = $this->request->param("position");//上车地址
$carmodel_id = $this->request->param("carmodel_id");//车型id
$charter_num = $this->request->param("charter_num");//包车数量
$intended_driver_id = $this->request->param("intended_driver_id");//意向司机
... ... @@ -1038,6 +1039,7 @@ class Car extends Base
"route_id" => $route_id,
"user_id" => $this->auth->id,
"order_review_id" => $order_review_id,
"position" => $position,
"phone" => $phone,
"starting_point" =>$starting_point,
"end_point" => $end_point,
... ... @@ -1059,6 +1061,7 @@ class Car extends Base
"end_point" => $end_point,
"user_id" => $this->auth->id,
"phone" => $phone,
"position" => $position,
"create_time" => time(),
"type" => 2,
"number" => $number,
... ... @@ -1092,6 +1095,7 @@ class Car extends Base
public function createcharterorderofflinepay()
{
$route_id = $this->request->param("route_id");//线路
$position = $this->request->param("position");//线路
$starting_point = $this->request->param("starting_point");//出发位置
$end_point = $this->request->param("end_point");//到达位置
$number = $this->request->param("number");//乘车人数
... ... @@ -1144,6 +1148,7 @@ class Car extends Base
$data = [
"order_no" => getOrderSn(),
"price" => $price,
"position" => $position,
"departure_time" => $departure_time,
"order_review_id" => $order_review_id,
"reservation_time" => $reservation_time,
... ... @@ -1169,6 +1174,7 @@ class Car extends Base
"is_pay" => 2,//未支付
"starting_point" =>$starting_point,
"end_point" => $end_point,
"position" => $position,
"route_id" => $route_id,
"departure_time" => $departure_time,
"user_id" => $this->auth->id,
... ...