objMNoticeSetting = new MNoticeSetting($this->onlineEnterpriseId); } /** * Doc: (des="设置") * User: XMing * Date: 2020/11/10 * Time: 6:17 下午 */ public function set() { $data = $this->request->getRawJson(); if (empty($data)){ parent::sendOutput('参数为空',ErrorCode::$paramError); } if (!isset($data['content']) || empty($data['content'])){ parent::sendOutput('content参数错误',ErrorCode::$paramError); } $result = $this->objMNoticeSetting->set($data); if ($result->isSuccess()) { parent::sendOutput($result->getData()); } parent::sendOutput($result->getData(), $result->getErrorCode()); } /** * Doc: (des="获取") * User: XMing * Date: 2020/11/10 * Time: 6:21 下午 */ public function get() { $result = $this->objMNoticeSetting->get(); if ($result->isSuccess()) { parent::sendOutput($result->getData()); } parent::sendOutput($result->getData(), $result->getErrorCode()); } }