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