|
@@ -38,7 +38,7 @@ class NewsService implements NewsServiceInterface
|
|
*/
|
|
*/
|
|
public function getCategoryList(array $data): array
|
|
public function getCategoryList(array $data): array
|
|
{
|
|
{
|
|
- $rep = Category::select("category.*")->orderBy('category.updated_at',"asc")->get();
|
|
|
|
|
|
+ $rep = Category::select("category.*")->orderBy('category.updated_at',"desc")->get();
|
|
if (empty($rep)) {
|
|
if (empty($rep)) {
|
|
return Result::error("没有导航池数据");
|
|
return Result::error("没有导航池数据");
|
|
}
|
|
}
|