10284 【后端】 仙宝奇缘新版本-倒贴版本(增加时效代币相关查询)
| | |
| | | ); |
| | | |
| | | //其他自定义货币 |
| | | foreach (array("33", "34", "35", "99", "41", "42") as $Currency) { |
| | | foreach (array("33", "34", "35", "41", "42", "99", "98") as $Currency) { |
| | | if (array_key_exists("PlayerCurrency_" . $Currency, $playerInfo)) { |
| | | $playerInfoKeyCh["PlayerCurrency_" . $Currency] = $moneyTypeArray[$Currency]; |
| | | $playerInfoKeyCh["PlayerCurrency_" . $Currency] = $moneyTypeArray[$Currency]?$moneyTypeArray[$Currency]:("货币".$Currency); |
| | | } |
| | | } |
| | | |
| | |
| | | giveNameDict = CommFunc.getCfgKeyNameDict("money_enent_give", argvDict) |
| | | giveItemNameDict = CommFunc.getCfgKeyNameDict("item_enent_give", argvDict) |
| | | |
| | | needMoney2 = False |
| | | totalGive, totalUse = 0, 0 |
| | | bossTypeNameDict = {0:_(u"世界Boss"), 1:_(u"Boss之家"), 2:_(u"跨服Boss")} |
| | | prayTypeNameDict = {13:_(u"金币"), 14:_(u"经验")} |
| | | drList = sorted(drList, key=lambda dr:(dr["time"], dr['PlayerMoneyCount']), reverse=False) # 按time升序排 |
| | | for drDict in drList: |
| | | if not needMoney2 and "PlayerMoneyCount2" in drDict: |
| | | needMoney2 = True |
| | | MoneyCount = drDict['MoneyCount'] |
| | | eventName = drDict['eventName'] |
| | | reason_name_son = drDict.get("reason_name_son") |
| | |
| | | printStr += "<font color='red'><b>%s : %s<b></font><br/>" % (_(u"满足条件总条数过多,请调整查询条件!当前仅展示部分,实际总条数为"), drCount) |
| | | |
| | | # 表格输出 |
| | | printStr += CommFunc.editTableHtml(drList, ["MoneyCount", "PlayerMoneyCount", "eventName", "reason_name_son", "time"], _(u"编号"), |
| | | tdList = ["MoneyCount", "PlayerMoneyCount", "eventName", "reason_name_son", "time"] |
| | | styleInfo={"MoneyCount":{"align":"right", "title":_(u"变化值")}, |
| | | "PlayerMoneyCount":{"align":"right", "title":_(u"剩余")}, |
| | | "eventName":{"align":"left"}, |
| | | } |
| | | if needMoney2: |
| | | tdList = ["MoneyCount", "PlayerMoneyCount", "PlayerMoneyCount2", "eventName", "reason_name_son", "time"] |
| | | money2TitleDict = {99:"时效"} |
| | | money2Title = _(u"剩余") + money2TitleDict.get(moneyType, "2") |
| | | styleInfo.update({ |
| | | "PlayerMoneyCount2":{"align":"right", "title":money2Title}, |
| | | }) |
| | | printStr += CommFunc.editTableHtml(drList, tdList, _(u"编号"), styleInfo=styleInfo) |
| | | |
| | | # 只会返回最后一个print的内容 |
| | | print printStr |