村民信息收集

This commit is contained in:
chenbo 2024-01-27 17:21:44 +08:00
parent 718d0d0d06
commit d33b09780d
1 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ class IndexController extends BaseApiController
{ {
public array $notNeedLogin = ['index', 'config', 'policy', 'decorate', 'notifyUrl', 'notifyProperty', public array $notNeedLogin = ['index', 'config', 'policy', 'decorate', 'notifyUrl', 'notifyProperty',
'notifyAuthentication', 'notifyVehicleContractUpdate','townCarRent','systemCarRent', 'selfCarRent', 'notifyAuthentication', 'notifyVehicleContractUpdate','townCarRent','systemCarRent', 'selfCarRent',
'cancelRent', 'buyCar', 'vehicleCarList', 'addVillagerInfo']; 'cancelRent', 'buyCar', 'vehicleCarList', 'addVillagerInfo', 'getVillagerInfo', 'editVillagerInfo'];
/** /**
* @notes 首页数据 * @notes 首页数据
@ -842,7 +842,7 @@ class IndexController extends BaseApiController
public function getVillagerInfo() public function getVillagerInfo()
{ {
$shopUserId = $this->request->get('shop_user_id'); $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); return $this->success('成功', $detail);
} }
public function editVillagerInfo() public function editVillagerInfo()