作者 郭文星

123

@@ -988,6 +988,7 @@ class Car extends Base @@ -988,6 +988,7 @@ class Car extends Base
988 $departure_time=substr($reservation_time,0,16); 988 $departure_time=substr($reservation_time,0,16);
989 $departure_time = strtotime($departure_time); 989 $departure_time = strtotime($departure_time);
990 $phone = $this->request->param("phone");//联系电话 990 $phone = $this->request->param("phone");//联系电话
  991 + $position = $this->request->param("position");//上车地址
991 $carmodel_id = $this->request->param("carmodel_id");//车型id 992 $carmodel_id = $this->request->param("carmodel_id");//车型id
992 $charter_num = $this->request->param("charter_num");//包车数量 993 $charter_num = $this->request->param("charter_num");//包车数量
993 $intended_driver_id = $this->request->param("intended_driver_id");//意向司机 994 $intended_driver_id = $this->request->param("intended_driver_id");//意向司机
@@ -1038,6 +1039,7 @@ class Car extends Base @@ -1038,6 +1039,7 @@ class Car extends Base
1038 "route_id" => $route_id, 1039 "route_id" => $route_id,
1039 "user_id" => $this->auth->id, 1040 "user_id" => $this->auth->id,
1040 "order_review_id" => $order_review_id, 1041 "order_review_id" => $order_review_id,
  1042 + "position" => $position,
1041 "phone" => $phone, 1043 "phone" => $phone,
1042 "starting_point" =>$starting_point, 1044 "starting_point" =>$starting_point,
1043 "end_point" => $end_point, 1045 "end_point" => $end_point,
@@ -1059,6 +1061,7 @@ class Car extends Base @@ -1059,6 +1061,7 @@ class Car extends Base
1059 "end_point" => $end_point, 1061 "end_point" => $end_point,
1060 "user_id" => $this->auth->id, 1062 "user_id" => $this->auth->id,
1061 "phone" => $phone, 1063 "phone" => $phone,
  1064 + "position" => $position,
1062 "create_time" => time(), 1065 "create_time" => time(),
1063 "type" => 2, 1066 "type" => 2,
1064 "number" => $number, 1067 "number" => $number,
@@ -1092,6 +1095,7 @@ class Car extends Base @@ -1092,6 +1095,7 @@ class Car extends Base
1092 public function createcharterorderofflinepay() 1095 public function createcharterorderofflinepay()
1093 { 1096 {
1094 $route_id = $this->request->param("route_id");//线路 1097 $route_id = $this->request->param("route_id");//线路
  1098 + $position = $this->request->param("position");//线路
1095 $starting_point = $this->request->param("starting_point");//出发位置 1099 $starting_point = $this->request->param("starting_point");//出发位置
1096 $end_point = $this->request->param("end_point");//到达位置 1100 $end_point = $this->request->param("end_point");//到达位置
1097 $number = $this->request->param("number");//乘车人数 1101 $number = $this->request->param("number");//乘车人数
@@ -1144,6 +1148,7 @@ class Car extends Base @@ -1144,6 +1148,7 @@ class Car extends Base
1144 $data = [ 1148 $data = [
1145 "order_no" => getOrderSn(), 1149 "order_no" => getOrderSn(),
1146 "price" => $price, 1150 "price" => $price,
  1151 + "position" => $position,
1147 "departure_time" => $departure_time, 1152 "departure_time" => $departure_time,
1148 "order_review_id" => $order_review_id, 1153 "order_review_id" => $order_review_id,
1149 "reservation_time" => $reservation_time, 1154 "reservation_time" => $reservation_time,
@@ -1169,6 +1174,7 @@ class Car extends Base @@ -1169,6 +1174,7 @@ class Car extends Base
1169 "is_pay" => 2,//未支付 1174 "is_pay" => 2,//未支付
1170 "starting_point" =>$starting_point, 1175 "starting_point" =>$starting_point,
1171 "end_point" => $end_point, 1176 "end_point" => $end_point,
  1177 + "position" => $position,
1172 "route_id" => $route_id, 1178 "route_id" => $route_id,
1173 "departure_time" => $departure_time, 1179 "departure_time" => $departure_time,
1174 "user_id" => $this->auth->id, 1180 "user_id" => $this->auth->id,