mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 修复文档备注的BUG
This commit is contained in:
parent
c8cccdc92b
commit
d3aec8a58c
@ -34,6 +34,7 @@ class DocumentController extends BaseController {
|
|||||||
$data['createTime'] = NOW_TIME;
|
$data['createTime'] = NOW_TIME;
|
||||||
$data['endTime'] = I('post.keep') * 3600 + NOW_TIME;
|
$data['endTime'] = I('post.keep') * 3600 + NOW_TIME;
|
||||||
$data['key'] = I('post.key');
|
$data['key'] = I('post.key');
|
||||||
|
$data['info'] = I('post.info');
|
||||||
D('ApiDocument')->add($data);
|
D('ApiDocument')->add($data);
|
||||||
$this->ajaxSuccess('添加成功');
|
$this->ajaxSuccess('添加成功');
|
||||||
} else {
|
} else {
|
||||||
@ -101,7 +102,9 @@ class DocumentController extends BaseController {
|
|||||||
$this->ajaxSuccess('修改成功');
|
$this->ajaxSuccess('修改成功');
|
||||||
} else {
|
} else {
|
||||||
$key = I('get.key');
|
$key = I('get.key');
|
||||||
|
$detail = D('ApiDocument')->where(array('key' => $key))->find();
|
||||||
$this->assign('key', $key);
|
$this->assign('key', $key);
|
||||||
|
$this->assign('info', $detail['info']);
|
||||||
$this->display();
|
$this->display();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user