村民信息收集

This commit is contained in:
chenbo 2024-01-27 17:28:26 +08:00
parent d33b09780d
commit 6059c562da
1 changed files with 1 additions and 1 deletions

View File

@ -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)->find(); $detail = Db::name('villager_information')->where('shop_user_id', $shopUserId)->findOrEmpty();
return $this->success('成功', $detail); return $this->success('成功', $detail);
} }
public function editVillagerInfo() public function editVillagerInfo()