1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace JinDouYun\Controller\Enterprise;
- use JinDouYun\Controller\BaseController;
- use JinDouYun\Model\Enterprise\MEnterprise;
- /**
- * Class ApiEnterprise
- * @package JinDouYun\Controller\Enterprise
- */
- class ApiEnterprise extends BaseController
- {
- private $objMEnterprise;
- public function __construct($isCheckAcl = false, $isMustLogin = false, $checkToken = true, $getAreaCode = false)
- {
- parent::__construct($isCheckAcl, $isMustLogin, $checkToken, $getAreaCode);
- $this->objMEnterprise = new MEnterprise();
- }
- /**
- * @throws \Exception
- */
- public function getEnterpriseInfo()
- {
- $params['enterpriseId'] = $this->onlineEnterpriseId;
- $result = $this->objMEnterprise->getEnterpriseInfo($params);
- if ($result->isSuccess()) {
- parent::sendOutput($result->getData());
- } else {
- parent::sendOutput($result->getData(), $result->getErrorCode());
- }
- }
- }
|