objMBasicSetup = new MBasicSetup($this->onlineEnterpriseId); $this->objMAppVersion = new MAppVersion($this->onlineEnterpriseId); } /** * 获取基本设置配置项 */ public function getBasicField() { $field = $this->request->param('field'); if (empty($field)){ $this->sendOutput('参数错误', ErrorCode::$paramError ); } $result = $this->objMBasicSetup->getBasicField($field); if ($result->isSuccess()) { parent::sendOutput($result->getData()); } parent::sendOutput($result->getData(), $result->getErrorCode()); } /** * 获取app版本及地址 */ public function getVersion() { $oldVersion = $this->request->param('oldVersion'); $result = $this->objMAppVersion->getVersion($oldVersion); if ($result->isSuccess()) { parent::sendOutput($result->getData()); } parent::sendOutput($result->getData(), $result->getErrorCode()); } public function over_examination() { parent::sendOutput(0); } }