|
@@ -57,10 +57,6 @@ class MusicRepository
|
|
|
|
|
|
public function categoryEdit($request)
|
|
|
{
|
|
|
- if($this->postMusicCategory->where('name', $request['name'])->exists()){
|
|
|
- throw new HttpException(500, '该分类已经存在');
|
|
|
- }
|
|
|
-
|
|
|
$post_music_category = $this->postMusicCategory->where('id', $request['id'])->first();
|
|
|
$post_music_category->name = $request['name'];
|
|
|
$post_music_category->is_open = $request['is_open'] ?? 0;
|