Browse Source

添加一个返回状态

duqinya 5 years ago
parent
commit
fb4761ba96
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Http/Controllers/V1/MusicListController.php

+ 2 - 1
app/Http/Controllers/V1/MusicListController.php

@@ -72,7 +72,8 @@ class MusicListController extends Controller
             return jsonError($validator->errors()->first());
             return jsonError($validator->errors()->first());
         }
         }
 
 
-        return $this->musicRepository->create($request->all());
+        $data = $this->musicRepository->create($request->all());
+        return jsonSuccess($data);
 
 
     }
     }