From eb8fdba6b4040cdb69c572df80d644c0efed8e68 Mon Sep 17 00:00:00 2001 From: dengbw Date: Fri, 3 Sep 2021 15:20:24 +0800 Subject: [PATCH] bobing_903_2 --- api/controllers/wxapp/bobing/Bobing.php | 1 + api/controllers/wxapp/bobing/Home.php | 1 + 2 files changed, 2 insertions(+) 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) {