| | |
| | | DWORD CTGID; //对应充值ID
|
| | | DWORD GiftbagID; //对应限时礼包编号
|
| | | DWORD CoinExp; //对应转化经验
|
| | | float UsdMoney; //美元价格
|
| | | };
|
| | |
|
| | | //充值表
|
| | |
| | | ("DWORD", "CTGID", 0),
|
| | | ("DWORD", "GiftbagID", 0),
|
| | | ("DWORD", "CoinExp", 0),
|
| | | ("float", "UsdMoney", 0),
|
| | | ),
|
| | |
|
| | | "CTG":(
|
| | |
| | | self.CTGID = 0
|
| | | self.GiftbagID = 0
|
| | | self.CoinExp = 0 |
| | | self.UsdMoney = 0.0 |
| | | return |
| | | |
| | | def GetOrderInfo(self): return self.OrderInfo # 商品编号
|
| | |
| | | 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(): |
| | |
| | | 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)
|