作者 郭文星

123

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