From d33b09780d07ed4f04cb92753375eb379e2c7a26 Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Sat, 27 Jan 2024 17:21:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9D=91=E6=B0=91=E4=BF=A1=E6=81=AF=E6=94=B6?= =?UTF-8?q?=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/IndexController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/controller/IndexController.php b/app/api/controller/IndexController.php index f4ce5113..29efe5f5 100644 --- a/app/api/controller/IndexController.php +++ b/app/api/controller/IndexController.php @@ -41,7 +41,7 @@ class IndexController extends BaseApiController { public array $notNeedLogin = ['index', 'config', 'policy', 'decorate', 'notifyUrl', 'notifyProperty', 'notifyAuthentication', 'notifyVehicleContractUpdate','townCarRent','systemCarRent', 'selfCarRent', - 'cancelRent', 'buyCar', 'vehicleCarList', 'addVillagerInfo']; + 'cancelRent', 'buyCar', 'vehicleCarList', 'addVillagerInfo', 'getVillagerInfo', 'editVillagerInfo']; /** * @notes 首页数据 @@ -842,7 +842,7 @@ class IndexController extends BaseApiController public function getVillagerInfo() { $shopUserId = $this->request->get('shop_user_id'); - $detail = Db::name('villager_information')->where('shop_user_id', $shopUserId)->findOrEmpty(); + $detail = Db::name('villager_information')->where('shop_user_id', $shopUserId)->find(); return $this->success('成功', $detail); } public function editVillagerInfo()