Browse Source

排行bug

cyzhao 1 năm trước cách đây
mục cha
commit
97875170ad

+ 3 - 3
Gameserver/App/model/User/Info_Gates.php

@@ -198,13 +198,13 @@ class Info_Gates extends Object_ext {
      */
     public function maxPassGateId() {
         $maxIndex = 0;
-        $maxGateId = 0;
+        //$maxGateId = 0;
         foreach ($this->GateList as $gateId => $Ins_GateInfo) {
             if ($Ins_GateInfo->pass > 0 && Ins_GateInfo::gateNum($gateId) > $maxIndex) {
                 $maxIndex = Ins_GateInfo::gateNum($gateId);
-                $maxGateId = $gateId;
+                //$maxGateId = $gateId;
             }
         }
-        return $maxGateId;
+        return $maxIndex;
     }
 }

+ 2 - 2
Gameserver/App/process/FightProc.php

@@ -818,9 +818,9 @@ class FightProc {
         $ins_rank = new Ins_rank();
                     
         if($type == 1){
-            $lv = gMem()->zrank(MemKey_GameRun::Rank_MainGateIndex_Zone_zset(req()->zoneid), $uid);
+            $lv = gMem()->zrevrank(MemKey_GameRun::Rank_MainGateIndex_Zone_zset(req()->zoneid), $uid);
         } else {
-            $lv = gMem()->zrank(MemKey_GameRun::Rank_FightPower_Zone_zset(req()->zoneid), $uid);
+            $lv = gMem()->zrevrank(MemKey_GameRun::Rank_FightPower_Zone_zset(req()->zoneid), $uid);
         }
         
         if ($lv == null) {