request->isAjax()) { $post = $this->request->post(); $res = TreatyLogic::set($post); if ($res === false) { $error = TreatyLogic::getError() ?: '更新失败'; return JsonServer::error($error); } return JsonServer::success('更新成功'); } return view('', [ 'detail' => TreatyLogic::detail() ]); } }