request->isAjax()){ $post = $this->request->post(); OpLogic::setConfig($post); $this->_success('设置成功',[]); } $this->assign('config',OpLogic::getConfig(['app_id','secret'])); return $this->fetch(); } }