修改分类里

This commit is contained in:
augushong
2020-12-18 19:43:11 +08:00
parent 1657f245b6
commit c87972e0fc

View File

@@ -63,6 +63,7 @@ class Category extends Common
}
$model_category = ModelCategory::where('title',$post_data['title'])
->where('type',$post_data['type'])
->where('pid',$post_data['pid'])
->find();
@@ -131,6 +132,7 @@ class Category extends Common
$model_category = ModelCategory::where('title',$post_data['title'])
->where('pid',$post_data['pid'])
->where('type',$post_data['type'])
->where('id','<>',$id)
->find();