diff --git a/app/api/controller/IndexController.php b/app/api/controller/IndexController.php index 29efe5f5..da86d05c 100644 --- a/app/api/controller/IndexController.php +++ b/app/api/controller/IndexController.php @@ -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)->find(); + $detail = Db::name('villager_information')->where('shop_user_id', $shopUserId)->findOrEmpty(); return $this->success('成功', $detail); } public function editVillagerInfo()