正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
@@ -304,7 +304,7 @@ class Car extends Base | @@ -304,7 +304,7 @@ class Car extends Base | ||
304 | */ | 304 | */ |
305 | public function switching_driver() | 305 | public function switching_driver() |
306 | { | 306 | { |
307 | - $res = Db::name("driver")->where("user_id", 37)->find(); | 307 | + $res = Db::name("driver")->where("user_id", $this->auth->id)->find(); |
308 | $car = Db::name("car")->where("driver_id", $res['id'])->find(); | 308 | $car = Db::name("car")->where("driver_id", $res['id'])->find(); |
309 | if ($car) { | 309 | if ($car) { |
310 | //本月收入 | 310 | //本月收入 |
-
请 注册 或 登录 后发表评论