...
|
...
|
@@ -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']]);
|
|
|
}
|
|
|
|
...
|
...
|
|