修复类别更新

This commit is contained in:
augushong
2021-03-29 12:31:17 +08:00
parent f48c3c181c
commit d986a122c0

View File

@@ -126,13 +126,10 @@ class Category extends Common
public function update(Request $request, $id)
{
//
$post_data = $request->post();
$model_category = ModelCategory::where('title',$post_data['title'])
->where('pid',$post_data['pid'])
->where('type',$post_data['type'])
->where('id','<>',$id)
->find();