hxp
2023-12-13 af2d900905b6858a9ab1a7592ccf1b1c894fff03
10037 quick海外包充值传美元价格
3个文件已修改
17 ■■■■■ 已修改文件
PySysDB/PySysDBPY.h 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
PySysDB/PySysDBPY.h
@@ -1519,6 +1519,7 @@
    DWORD        CTGID;    //对应充值ID
    DWORD        GiftbagID;    //对应限时礼包编号
    DWORD        CoinExp;    //对应转化经验
    float        UsdMoney;    //美元价格
};
//充值表
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/IpyGameDataPY.py
@@ -1213,6 +1213,7 @@
                        ("DWORD", "CTGID", 0),
                        ("DWORD", "GiftbagID", 0),
                        ("DWORD", "CoinExp", 0),
                        ("float", "UsdMoney", 0),
                        ),
                "CTG":(
@@ -4689,6 +4690,7 @@
        self.CTGID = 0
        self.GiftbagID = 0
        self.CoinExp = 0
        self.UsdMoney = 0.0
        return
        
    def GetOrderInfo(self): return self.OrderInfo # 商品编号
@@ -4697,6 +4699,7 @@
    def GetCTGID(self): return self.CTGID # 对应充值ID
    def GetGiftbagID(self): return self.GiftbagID # 对应限时礼包编号
    def GetCoinExp(self): return self.CoinExp # 对应转化经验
    def GetUsdMoney(self): return self.UsdMoney # 美元价格
# 充值表
class IPY_CTG():
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py
@@ -334,6 +334,19 @@
        DataRecordPack.DR_CTGError(curPlayer, "Can not found the orderInfo.", addDRDict)
        return
    
    # quick海外用美元验证
    if "@9997@" in curPlayer.GetAccID():
        GameWorld.Log("quikc海外充值验证美元: orderInfo=%s,orderCoin=%s,orderID=%s" % (orderInfo, orderCoin, orderID), curPlayer.GetPlayerID())
        orderCoinUsd = orderCoin # 入库的是美元分
        orderCoin = CommFunc.RMBToCoin(ipyData.GetPayRMBNum()) # 游戏内orderCoin转化为人民币
        usdMoney = ipyData.GetUsdMoney()
        GameWorld.Log("    转化后: orderInfo=%s,orderCoin=%s,orderCoinUsd=%s" % (orderInfo, orderCoin, orderCoinUsd), curPlayer.GetPlayerID())
        addDRDict["orderCoin"] = orderCoin
        addDRDict["orderCoinUsd"] = orderCoinUsd
        if orderCoinUsd != CommFunc.RMBToCoin(usdMoney):
            DataRecordPack.DR_CTGError(curPlayer, "The orderCoinUsd is not equal to the ipyData's UsdMoney(%s)!" % usdMoney, addDRDict)
            return
    else:
    payRMBNum = ipyData.GetPayRMBNum() # 单位,元
    if orderCoin != CommFunc.RMBToCoin(payRMBNum):
        DataRecordPack.DR_CTGError(curPlayer, "The orderCoin is not equal to the ipyData's RMB(%s)!" % payRMBNum, addDRDict)