mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-08 02:52:49 +08:00
修复类别更新
This commit is contained in:
@@ -126,13 +126,10 @@ class Category extends Common
|
|||||||
public function update(Request $request, $id)
|
public function update(Request $request, $id)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
|
|
||||||
|
|
||||||
$post_data = $request->post();
|
$post_data = $request->post();
|
||||||
|
|
||||||
$model_category = ModelCategory::where('title',$post_data['title'])
|
$model_category = ModelCategory::where('title',$post_data['title'])
|
||||||
->where('pid',$post_data['pid'])
|
->where('pid',$post_data['pid'])
|
||||||
->where('type',$post_data['type'])
|
|
||||||
->where('id','<>',$id)
|
->where('id','<>',$id)
|
||||||
->find();
|
->find();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user