1、已知bug修复

2、微信接口更新
This commit is contained in:
2017-08-26 17:57:10 +08:00
parent cfcd6250ff
commit 356cccd1d4
25 changed files with 1353 additions and 695 deletions

View File

@@ -129,10 +129,10 @@ class Category extends Admin {
return $this->error('请先删除该分类下的子分类');
}
//判断该分类下有没有内容
$document_list = db('Document')->where(array('category_id' => $id))->field('id')->select();
if (!empty($document_list)) {
return $this->error('请先删除该分类下的文章(包含回收站)');
}
// $document_list = db('Document')->where(array('category_id' => $id))->field('id')->select();
// if (!empty($document_list)) {
// return $this->error('请先删除该分类下的文章(包含回收站)');
// }
//删除该分类信息
$res = db('Category')->where(array('id' => $id))->delete();
if ($res !== false) {