| | |
| | | $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"), |
| | | ); |
| | |
| | | } |
| | | |
| | | $Num = $skip; |
| | | $roleInfoArray = array(); |
| | | foreach ($retInfo as $info) { |
| | | $Num += 1; |
| | | echo "<tr class='trc'>"; |
| | |
| | | $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"]; |
| | | } |