正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -122,7 +122,7 @@ class Car extends Backend | @@ -122,7 +122,7 @@ class Car extends Backend | ||
122 | "driver_id"=>$driver["id"], | 122 | "driver_id"=>$driver["id"], |
123 | ]; | 123 | ]; |
124 | $place_image=$index->build(json_encode($data)); | 124 | $place_image=$index->build(json_encode($data)); |
125 | - $result = Db::name('driver')->where('id','=',$driver["id"])->update(['place_image'=>$avatar['fileurl']]); | 125 | + $result = Db::name('driver')->where('id','=',$driver["id"])->update(['place_image'=>$place_image['fileurl']]); |
126 | Db::commit(); | 126 | Db::commit(); |
127 | } catch (ValidateException|PDOException|Exception $e) { | 127 | } catch (ValidateException|PDOException|Exception $e) { |
128 | Db::rollback(); | 128 | Db::rollback(); |
-
请 注册 或 登录 后发表评论