AI Assistant 6 luni în urmă
părinte
comite
5442eba840
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      app/Module/Farm/Logics/HouseLogic.php

+ 2 - 2
app/Module/Farm/Logics/HouseLogic.php

@@ -336,7 +336,7 @@ class HouseLogic
 
 
         // 尝试从缓存获取排行榜数据
-        $cacheKey       = $this->cachePrefix . 'house_rank:top100';
+        $cacheKey       = $this->cachePrefix . 'house_rank:top100-1';
         $cachedRankList = Cache::get($cacheKey);
 
         if (!$cachedRankList) {
@@ -355,7 +355,7 @@ class HouseLogic
                              'f.balance'
                          ])
                 ->orderBy('fu.house_level', 'desc')
-                ->orderBy('fu.last_upgrade_time', 'asc') // 同等级按升级时间排序
+                ->orderBy('f.balance', 'desc') // 同等级按升级时间排序
                 ->limit($maxRankLimit)
                 ->get()
                 ->toArray();