商城 查询村公司信息
This commit is contained in:
parent
3bcb7884db
commit
c5ab197447
@ -16,5 +16,12 @@ use think\facade\Log;
|
|||||||
*/
|
*/
|
||||||
class ShopCallController extends BaseApiController
|
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'));
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user