wzq 5 rokov pred
rodič
commit
f9bc8ea700
1 zmenil súbory, kde vykonal 5 pridanie a 1 odobranie
  1. 5 1
      app/Repositories/Post/PostRepository.php

+ 5 - 1
app/Repositories/Post/PostRepository.php

@@ -531,7 +531,11 @@ class PostRepository
     public function getType($request)
     {
         $type = $this->post->where('id', $request['id'])->value('type');
-        return [$type];
+        return Response::create([
+            'message'  => '成功',
+            'status_code'   => 200,
+            'type'   => $type
+        ]);
     }
 
     /**