@@ -433,9 +433,7 @@ class PostController extends Controller
if ($validator->fails()) {
return jsonError($validator->errors()->first());
}
- Log::debug($request['id']);
$detail = $this->postRepositories->detail($request['id']);
- Log::debug($detail);
if (!$detail) {
return jsonError('获取内容信息失败');
@@ -396,13 +396,10 @@ class PostRepositories
*/
public function detail($id)
{
- $row = $this->post
+ return $this->post
->join('post_data', 'post_data.post_id', '=', 'post.id')
->select('post.*')
->find($id);
- Log::debug($id);
- Log::debug($this->post->toSql());
- return $row;
/**