This commit is contained in:
@ -57,4 +57,21 @@ class FirstCompanyController extends AbstractController
|
||||
$data = $this->firstCompanyRepository->getList($page, $pageSize, $params);
|
||||
return $this->apiResponse->success($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* 公司详情.
|
||||
* @throws Exception
|
||||
*/
|
||||
#[Scene(scene: 'companyInfo', argument: 'request')]
|
||||
public function companyInfo(FirstCompanyRequest $request): Response
|
||||
{
|
||||
$companyId = $request->input('company_id');
|
||||
$info = $this->firstCompanyRepository->companyInfo($companyId);
|
||||
// 获取公司管理员工信息
|
||||
$url = parse_url($info['domain']);
|
||||
$domainUrl = $url['host'] ?? '';
|
||||
$arrTmp = explode('.', $domainUrl, 2);
|
||||
$info['domain'] = current($arrTmp);
|
||||
return $this->apiResponse->success($info);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user