wzq 5 years ago
parent
commit
3b9d2e071f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      app/Repositories/Post/PostRepository.php

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

@@ -530,7 +530,8 @@ class PostRepository
      */
      */
     public function getType($request)
     public function getType($request)
     {
     {
-        return $this->post->where('id', $request['id'])->value('type');
+        $type = $this->post->where('id', $request['id'])->value('type');
+        return [$type];
     }
     }
 
 
     /**
     /**