diff --git a/api/controllers/wxapp/bobing/Bobing.php b/api/controllers/wxapp/bobing/Bobing.php index bdb02349..f02a4ecb 100644 --- a/api/controllers/wxapp/bobing/Bobing.php +++ b/api/controllers/wxapp/bobing/Bobing.php @@ -297,6 +297,7 @@ class Bobing extends Wxapp } !$this->car_id && $this->car_id = 13; if (!$re_u['car_id']) { + $where['uid'] = $this->myuid; $this->mdBobingUser->update(array("car_id" => $this->car_id), $where); } if (!$re_u) { diff --git a/api/controllers/wxapp/bobing/Home.php b/api/controllers/wxapp/bobing/Home.php index 05d5f2b9..94a5d74f 100644 --- a/api/controllers/wxapp/bobing/Home.php +++ b/api/controllers/wxapp/bobing/Home.php @@ -483,6 +483,7 @@ class Home extends Wxapp } !$this->car_id && $this->car_id = 13; if (!$re_u['car_id']) { + $where['uid'] = $this->myuid; $this->mdBobingUser->update(array("car_id" => $this->car_id), $where); } if (!$re_u) {