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