...
|
...
|
@@ -1285,4 +1285,23 @@ class Car extends Base |
|
|
$specificaddress=Db::name("specificaddress")->where("route_id",$route_id)->select();
|
|
|
$this->success("请求成功",$specificaddress);
|
|
|
}
|
|
|
|
|
|
|
|
|
/**
|
|
|
* 查询订单中选中的座位
|
|
|
* @return void
|
|
|
*/
|
|
|
public function findseat(){
|
|
|
$order_id=$this->request->param("order_id");
|
|
|
$order=Db::name("name")->where("id",$order_id)->find();
|
|
|
$car=Db::name("car")->where("id",$order['car_id'])->find();
|
|
|
$seat=Db::name("seat")->where("id",$car['seat_id'])->find();
|
|
|
$seat_data=json_decode($seat['seat'],true);
|
|
|
if($seat_data){
|
|
|
$seat_info=$seat_data[$order['seat_no']];
|
|
|
$this->success("请求成功",$seat_info);
|
|
|
}else{
|
|
|
$this->error("请求失败");
|
|
|
}
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|