diff --git a/app/api/controller/ShopCallController.php b/app/api/controller/ShopCallController.php index 1e0f84c86..5aa4ee727 100644 --- a/app/api/controller/ShopCallController.php +++ b/app/api/controller/ShopCallController.php @@ -16,5 +16,12 @@ use think\facade\Log; */ class ShopCallController extends BaseApiController { - + public array $notNeedLogin = ['getVillageCompany']; + public function getVillageCompany() + { + $param = $this->request->param(); + $geoVillage = Db::name('geo_village')->where('village_id', $param['village_id'])->find(); + $company = Company::where(['village' =>$geoVillage['village_code'], 'company_type'=>17])->find(); + return $this->success('成功', compact('company')); + } } \ No newline at end of file