1、bug的修复

2、内核更新
This commit is contained in:
2016-07-10 23:48:24 +08:00
parent f3fff63632
commit 1a0a29413a
50 changed files with 760 additions and 958 deletions

View File

@@ -19,12 +19,8 @@ class Category extends Admin{
public function index(){
$map = array('status' => array('gt', -1));
$row = db('Category')->where($map)->order('sort asc,id asc')->select();
$list = db('Category')->where($map)->order('sort asc,id asc')->column('*','id');
$list = array();
foreach ($row as $key => $value) {
$list[$value['id']] = $value;
}
if (!empty($list)) {
$tree = new \com\Tree();
$list = $tree->toFormatTree($list);
@@ -240,9 +236,9 @@ class Category extends Admin{
$map['id'] = array('IN',$ids);
$result = db('Category')->where($map)->setField('status', $status);
if ($result) {
return $this->success("设置成功!",'');
return $this->success("设置成功!");
}else{
return $this->error("设置失败!",'');
return $this->error("设置失败!");
}
}
}