wzq %!s(int64=5) %!d(string=hai) anos
pai
achega
f9bc8ea700
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  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
+        ]);
     }
 
     /**