商城 查询村公司信息
This commit is contained in:
parent
4f9944c3a6
commit
1d85dcc2d5
@ -3,6 +3,7 @@
|
||||
namespace app\api\controller;
|
||||
|
||||
use app\common\logic\task\TaskLogic;
|
||||
use app\common\model\auth\Admin;
|
||||
use app\common\model\Company;
|
||||
use app\common\model\dict\DictData;
|
||||
use app\common\model\task\Task;
|
||||
@ -22,6 +23,14 @@ class ShopCallController extends BaseApiController
|
||||
$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();
|
||||
$find= Admin::where('id', $company['admin_id'])->field('avatar,id_card')->find();
|
||||
if($find){
|
||||
$company['avatar']=$find['avatar'];
|
||||
$company['id_card']=$find['id_card'];
|
||||
}else{
|
||||
$company['avatar']='';
|
||||
$company['id_card']='';
|
||||
}
|
||||
return $this->success('成功', compact('company'));
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user