wzq преди 5 години
родител
ревизия
f9bc8ea700
променени са 1 файла, в които са добавени 5 реда и са изтрити 1 реда
  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
+        ]);
     }
 
     /**