...
|
...
|
@@ -122,7 +122,7 @@ class Car extends Backend |
|
|
"driver_id"=>$driver["id"],
|
|
|
];
|
|
|
$place_image=$index->build(json_encode($data));
|
|
|
$result = Db::name('driver')->where('id','=',$driver["id"])->update(['place_image'=>$avatar['fileurl']]);
|
|
|
$result = Db::name('driver')->where('id','=',$driver["id"])->update(['place_image'=>$place_image['fileurl']]);
|
|
|
Db::commit();
|
|
|
} catch (ValidateException|PDOException|Exception $e) {
|
|
|
Db::rollback();
|
...
|
...
|
|