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
+        ]);
     }
 
     /**