|
|
@@ -119,10 +119,10 @@ class CatalogController extends BaseController {
|
|
|
return;
|
|
|
}
|
|
|
//如果一个目录已经是别的目录的父目录,那么它将无法再转为level4目录
|
|
|
- if (D("Catalog")->where(" parent_cat_id = '$cat_id' ")->find() && $data['level'] == 4 ) {
|
|
|
- $this->sendError(10101,"该目录含有子目录,不允许转为底层目录。");
|
|
|
- return;
|
|
|
- }
|
|
|
+ //if (D("Catalog")->where(" parent_cat_id = '$cat_id' ")->find() && $data['level'] == 4 ) {
|
|
|
+ //$this->sendError(10101,"该目录含有子目录,不允许转为底层目录。");
|
|
|
+ //return;
|
|
|
+ //}
|
|
|
|
|
|
$ret = D("Catalog")->where(" cat_id = '$cat_id' ")->save($data);
|
|
|
$return = D("Catalog")->where(" cat_id = '$cat_id' ")->find();
|