Server/eventdata/PlayerMoneyDR.py
@@ -71,11 +71,14 @@
    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")
@@ -143,11 +146,19 @@
        printStr += "<font color='red'><b>%s : %s<b></font><br/>" % (_(u"满足条件总条数过多,请调整查询条件!当前仅展示部分,实际总条数为"), drCount)
        
    # 表格输出
    printStr += CommFunc.editTableHtml(drList, ["MoneyCount", "PlayerMoneyCount", "eventName", "reason_name_son", "time"], _(u"编号"),
                                       styleInfo={"MoneyCount":{"align":"right", "title":_(u"变化值")},
                                                  "PlayerMoneyCount":{"align":"right", "title":_(u"剩余")},
                                                  "eventName":{"align":"left"},
                                                  })
    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