Browse Source

1. 同上一条

gwang 5 years ago
parent
commit
c656eafa16
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Gameserver/Amfphp/process/RankProc.php

+ 1 - 1
Gameserver/Amfphp/process/RankProc.php

@@ -68,7 +68,7 @@ class RankProc {
         $user_score = $req->mem->zscore($key, $req->uid);                       # 查询积分
         return Resp::ok(array(#                                                 # 返回值
                     'rankInfo' => $userInfos,
-                    'ranking' => my_null_default($user_ranking + 1, 0), #       # 修正下排名(zset中是从零开始的)
+                    'ranking' => my_null_default($user_ranking, 100) + 1, #     # 修正下排名(zset中是从零开始的)
                     'score' => my_null_default($user_score, 0)
         ));
 //