作者 郭文星

123

... ... @@ -122,15 +122,16 @@ class Car extends Backend
"driver_id"=>$driver["id"],
"route_id"=>$route["id"],
];
$url_data=
"pages/module/intercityOrder?start_address=".$route['start_address']."
$url_data="pages/module/intercityOrder?start_address=".$route['start_address']."
&route_id=".$route['id']."
&driver_id=".$driver['id']."
&license_plate=".$car['license_plate']."
&name=".$driver['name']."
&end_address=".$route['end_address']."
&price=".$route['price'];
$url_data=urlencode($url_data);
$place_image=$this->getQRCode($url_data);
//encodeURIComponent
$result = Db::name('driver')->where('id','=',$driver["id"])->update(['place_image'=>$place_image['fileurl']]);
Db::commit();
} catch (ValidateException|PDOException|Exception $e) {
... ... @@ -196,14 +197,15 @@ class Car extends Backend
"driver_id"=>$driver["id"],
"route_id"=>$route["id"],
];
$url_data=
"pages/module/intercityOrder?start_address=".$route['start_address']."
$url_data="pages/module/intercityOrder?start_address=".$route['start_address']."
&route_id=".$route['id']."
&driver_id=".$driver['id']."
&license_plate=".$car['license_plate']."
&name=".$driver['name']."
&end_address=".$route['end_address']."
&price=".$route['price'];$place_image=$this->getQRCode($url_data);
&price=".$route['price'];
$url_data=urlencode($url_data);
$place_image=$this->getQRCode($url_data);
$result = Db::name('driver')->where('id','=',$driver["id"])->update(['place_image'=>$place_image['fileurl']]);
}
... ...
... ... @@ -1563,4 +1563,18 @@ class Car extends Base
$res=SendMessage(117);
$this->success("123",$res);
}
/**
* 查询包车车辆
* @return void
*/
public function charter_car(){
$specificaddress_id = $this->request->param("specificaddress_id");
$res=Db::name('chartercar')
->alias("a")
->join("carmodel b","a.carmodel_id=b.id")
->where('specificaddress_id',$specificaddress_id)
->select();
$this->success("请求成功",$res);
}
}
\ No newline at end of file
... ...