From d3aec8a58c42277733088784758097e736142f7e Mon Sep 17 00:00:00 2001 From: zhaoxiang <756958008@qq.com> Date: Sat, 15 Jul 2017 16:19:50 +0800 Subject: [PATCH] =?UTF-8?q?modified=20=E4=BF=AE=E5=A4=8D=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E5=A4=87=E6=B3=A8=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/DocumentController.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Application/Admin/Controller/DocumentController.class.php b/Application/Admin/Controller/DocumentController.class.php index 6bce712..304074f 100644 --- a/Application/Admin/Controller/DocumentController.class.php +++ b/Application/Admin/Controller/DocumentController.class.php @@ -34,6 +34,7 @@ class DocumentController extends BaseController { $data['createTime'] = NOW_TIME; $data['endTime'] = I('post.keep') * 3600 + NOW_TIME; $data['key'] = I('post.key'); + $data['info'] = I('post.info'); D('ApiDocument')->add($data); $this->ajaxSuccess('添加成功'); } else { @@ -101,7 +102,9 @@ class DocumentController extends BaseController { $this->ajaxSuccess('修改成功'); } else { $key = I('get.key'); + $detail = D('ApiDocument')->where(array('key' => $key))->find(); $this->assign('key', $key); + $this->assign('info', $detail['info']); $this->display(); } }