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()