/** * 添加、修改公众号 */ public function actionModify($id) { $GhManage = new GhManage(); $id = (int) $id; $this->data = $GhManage->getOne('*', array('gid' => $id)); if ($this->data['gh_key']) { $this->data['gh_key'] = $this->data['gh_key']; } }
/** * 默认函数 */ public function actionIndex() { $data = WaveCommon::getFilter($_GET); $GhManage = new GhManage(); $WxModel = new WxModel(); $array = $GhManage->getOne('*', array('gh_key' => $data['key'])); if ($array) { $this->token = $array['gh_token']; $this->enaeskey = $array['gh_enaeskey']; $this->appid = $array['gh_appid']; $this->appsecret = $array['gh_appsecret']; } $echoStr = isset($_GET["echostr"]) ? $_GET["echostr"] : 'no echoStr'; $WxModel->recordLog($echoStr); if ($this->checkSignature()) { $WxModel->recordLog($echoStr); echo $echoStr; die; } die; $this->responseMsg(); }