request->isPost()) { $params = $this->request->post(); PcLogic::set($params); return JsonServer::success('设置成功'); } $config = PcLogic::getConfig(); return view('set', ['config' => $config]); } }