has('bid') ? $request->input('bid') : null; $time = BookSensitiveStatService::getMaxTime(); if(!$bid) return response()->error('PARAM_ERROR'); $chapters = SensitiveChapterService::getListObj(compact('bid','time'))->paginate(); foreach ($chapters as $chapter) { $chapter->content = ChapterService::getChapterById($chapter->cid)->content; } return response()->pagination(new SensitiveChapterTransformer(), $chapters); } }