作者 郭文星

123

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