hxp
2024-12-03 7fb24943a4758bbda9b14b0322fe95ea034c9444
10162 后台优化(充值排行增加显示玩家名)
1个文件已修改
13 ■■■■■ 已修改文件
serverinfo/payrank.php 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
serverinfo/payrank.php
@@ -88,6 +88,7 @@
$tableArray = array(
    "Num" => array(\Lang\gettext("编号"), "3%", "center"),
    "AccountGroup" => array(\Lang\gettext("分组"), "5%", "center"),
    "PlayerName" => array(\Lang\gettext("玩家名"), "10%", "center"),
    "_id" => array(\Lang\gettext("游戏账号"), "15%", "center"),
    "total" => array(\Lang\gettext("充值总金额"), "5%", "center"),
);
@@ -142,6 +143,7 @@
            }
            $Num = $skip;
            $roleInfoArray = array();
            foreach ($retInfo as $info) {
                $Num += 1;
                echo "<tr class='trc'>";
@@ -153,6 +155,17 @@
                        $idInfo = $info["_id"];
                        $Coupontype = \DataMgr\GetCoupontypeGroup($spid, $idInfo["AccountID"], $idInfo["ServerID"]);
                        $tdContent = array_key_exists($Coupontype, $CoupontypeGroup) ? $CoupontypeGroup[$Coupontype] : "";
                    } elseif ($key == "PlayerName") {
                        $idInfo = $info["_id"];
                        $accountKey = $idInfo["AccountID"] . "@" .  $spid;
                        $find = array("Channel" => $spid, "AccountID" => $idInfo["AccountID"]);
                        if (!$roleInfoArray[$accountKey] && \DBOper\FindOne("GameRoles", $find, $findData) && isset($findData)) {
                            $roleInfoArray[$accountKey] = $findData;
                        }
                        $tdContent = "";
                        if ($roleInfoArray[$accountKey] && $roleInfoArray[$accountKey]["s" . $idInfo["ServerID"]]) {
                            $tdContent = $roleInfoArray[$accountKey]["s" . $idInfo["ServerID"]]["PlayerName"];
                        }
                    } elseif ($key == "_id") {
                        $tdContent = $tdContent["AccountID"] . "@" .  $spid . "@s" . $tdContent["ServerID"];
                    }