作者 郭文星

123

@@ -314,6 +314,7 @@ class Car extends Base @@ -314,6 +314,7 @@ class Car extends Base
314 public function switching_driver() 314 public function switching_driver()
315 { 315 {
316 $res = Db::name("driver")->where("user_id", $this->auth->id)->find(); 316 $res = Db::name("driver")->where("user_id", $this->auth->id)->find();
  317 + print_r($res);
317 $car = Db::name("car")->where("driver_id", $res['id'])->find(); 318 $car = Db::name("car")->where("driver_id", $res['id'])->find();
318 if ($car) { 319 if ($car) {
319 //本月收入 320 //本月收入