WIN-2308041133\Administrator 5 months ago
parent
commit
440ae4d0f8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/common/repositories/user/AwardIntegralPriceRepository.php

+ 1 - 1
app/common/repositories/user/AwardIntegralPriceRepository.php

@@ -119,7 +119,7 @@ class AwardIntegralPriceRepository extends BaseRepository
 
         // 查询满足条件的数据列表,带有 'label' 关联数据,按 'label_rule_id' 倒序排列
         // 分页查询,返回当前页码的 $limit 条数据,并将结果转换为数组形式
-        $list = $query->page($page, $limit)->select()->toArray();
+        $list = $query->page($page, $limit)->order('day DESC')->select()->toArray();
         // 返回包含数据总数和数据列表的数组
         return compact('count', 'list');
     }