27 lines
795 B
PHP
27 lines
795 B
PHP
<?php
|
|
|
|
namespace app\api\controller;
|
|
|
|
use app\common\logic\task\TaskLogic;
|
|
use app\common\model\Company;
|
|
use app\common\model\dict\DictData;
|
|
use app\common\model\task\Task;
|
|
use app\common\model\task_template\TaskTemplate;
|
|
use think\Exception;
|
|
use think\facade\Db;
|
|
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'));
|
|
}
|
|
} |