1、修复栏目管理中的bug

2、增加路由规则管理
This commit is contained in:
2016-07-23 11:26:09 +08:00
parent 27891c868a
commit 75125bb298
7 changed files with 88 additions and 70 deletions

View File

@@ -25,6 +25,10 @@ class Base extends \think\Model{
*/
public function change(){
$data = \think\Request::instance()->post();
return $this->save($data, array('id'=>$data['id']));
if (isset($data['id']) && $data['id']) {
return $this->save($data, array('id'=>$data['id']));
}else{
return $this->save($data);
}
}
}