|
@@ -24,7 +24,7 @@ class CategoryController extends Controller {
|
|
//列表
|
|
//列表
|
|
public function index(Request $request) {
|
|
public function index(Request $request) {
|
|
$categoryList = $this->categoryRepository->lists($request->all());
|
|
$categoryList = $this->categoryRepository->lists($request->all());
|
|
- return $this->jsonSuccess($categoryList);
|
|
|
|
|
|
+ return jsonSuccess($categoryList);
|
|
}
|
|
}
|
|
//获取多个话题
|
|
//获取多个话题
|
|
public function getTopics(Request $request){
|
|
public function getTopics(Request $request){
|
|
@@ -36,6 +36,6 @@ class CategoryController extends Controller {
|
|
return jsonError($validator->errors()->first());
|
|
return jsonError($validator->errors()->first());
|
|
}
|
|
}
|
|
$categoryList = $this->categoryRepository->getTopics($data['ids']);
|
|
$categoryList = $this->categoryRepository->getTopics($data['ids']);
|
|
- return $this->jsonSuccess($categoryList);
|
|
|
|
|
|
+ return jsonSuccess($categoryList);
|
|
}
|
|
}
|
|
}
|
|
}
|