目录结构更新,增加composer支持

This commit is contained in:
2018-01-14 09:40:04 +08:00
parent 3818619504
commit ae46a73172
945 changed files with 421 additions and 210179 deletions

View File

@@ -66,7 +66,7 @@ class Content extends Admin {
* @author molong <ycgpp@126.com>
*/
public function add() {
if (IS_POST) {
if ($this->request->isPost()) {
$result = $this->model->save($this->param);
if ($result) {
//记录行为
@@ -99,7 +99,7 @@ class Content extends Admin {
* @author molong <ycgpp@126.com>
*/
public function edit($id) {
if (IS_POST) {
if ($this->request->isPost()) {
$result = $this->model->save($this->param, array('id'=> $id));
if ($result !== false) {
//记录行为