...
|
...
|
@@ -90,6 +90,7 @@ class Car extends Base |
|
|
$phone = $this->request->param("phone");//联系手机号码
|
|
|
$user_name = $this->request->param("user_name");//联系人
|
|
|
$position = $this->request->param("position");//上车地址
|
|
|
$specificaddress_id = $this->request->param("specificaddress_id");//上车地址
|
|
|
$seat_no = $this->request->param("seat_no");//座位
|
|
|
$lat = $this->request->param("lat");//经度
|
|
|
$lng = $this->request->param("lng");//维度
|
...
|
...
|
@@ -150,6 +151,7 @@ class Car extends Base |
|
|
"car_id"=>$car_id,
|
|
|
"order_review_id"=>$order_review_id,
|
|
|
"route_id"=>$route_id,
|
|
|
"specificaddress_id"=>$specificaddress_id,
|
|
|
"user_id"=>$this->auth->id,
|
|
|
"phone"=>$phone,
|
|
|
"user_name"=>$user_name,
|
...
|
...
|
@@ -961,6 +963,7 @@ class Car extends Base |
|
|
$route_id = $this->request->param("route_id");//线路
|
|
|
$position = $this->request->param("position");//上车地址
|
|
|
$lat = $this->request->param("lat");//经度
|
|
|
$specificaddress_id = $this->request->param("specificaddress_id");//区域id
|
|
|
$lng = $this->request->param("lng");//维度
|
|
|
$number = $this->request->param("number");//乘车人数
|
|
|
$carmodel_id = $this->request->param("carmodel_id");//乘车人数
|
...
|
...
|
@@ -978,6 +981,7 @@ class Car extends Base |
|
|
"price"=>$price,
|
|
|
"driver_id"=>$driver['id'],
|
|
|
"is_qrcode"=>$is_qrcode,
|
|
|
"specificaddress_id"=>$specificaddress_id,
|
|
|
"reservation_time"=>$reservation_time,
|
|
|
"is_pay"=>"2",//未支付
|
|
|
"route_id"=>$route_id,
|
...
|
...
|
@@ -1025,6 +1029,7 @@ class Car extends Base |
|
|
$carmodel_id = $this->request->param("carmodel_id");//乘车人数
|
|
|
$reservation_time = $this->request->param("reservation_time");//预约时间
|
|
|
$phone = $this->request->param("phone");//联系电话
|
|
|
$specificaddress_id = $this->request->param("specificaddress_id");//区域id
|
|
|
$intended_driver_id = $this->request->param("intended_driver_id");//意向司机
|
|
|
$remarks = $this->request->param("remarks");//备注
|
|
|
$driver=Db::name("driver")->where("id",$intended_driver_id)->find();
|
...
|
...
|
@@ -1036,6 +1041,7 @@ class Car extends Base |
|
|
"order_no"=>getOrderSn(),
|
|
|
"price"=>$price,
|
|
|
"is_qrcode"=>$is_qrcode,
|
|
|
"specificaddress_id"=>$specificaddress_id,
|
|
|
"reservation_time"=>$reservation_time,
|
|
|
"is_pay"=>"1",//未支付
|
|
|
"route_id"=>$route_id,
|
...
|
...
|
@@ -1144,10 +1150,8 @@ class Car extends Base |
|
|
$indexList = array_keys($charArray);
|
|
|
$itemArr = array_values($charArray);
|
|
|
}
|
|
|
|
|
|
array_unshift($indexList, "*");
|
|
|
$this->success("数据获取成功", ["indexList" => $indexList, "itemArr" => $itemArr]);
|
|
|
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
@@ -1208,14 +1212,15 @@ class Car extends Base |
|
|
"order_no"=>getOrderSn(),
|
|
|
];
|
|
|
$res=Db::name("order")->where("id",$order['id'])->update($data);
|
|
|
$userinfo = Db::name('user')
|
|
|
$order=Db::name("order")->where("order_no",$order_no)->find();
|
|
|
$userinfo = Db::name('user')
|
|
|
->where(['id' => $this->auth->id])
|
|
|
->field('id,wx_xcx_openid')
|
|
|
->find();
|
|
|
$notifyURI = $this->doman . '/addons/epay/api/OrderPayNtf';
|
|
|
$params = [
|
|
|
'amount' => $data['price'],
|
|
|
'orderid' => $data['order_no'],
|
|
|
'amount' => $order['price'],
|
|
|
'orderid' => $order['order_no'],
|
|
|
'type' => 'wechat',
|
|
|
'notifyurl' => $notifyURI,
|
|
|
'method' => 'miniapp',
|
...
|
...
|
|