| | |
| | | import PlayerFeastTravel
|
| | | import PlayerWeekParty
|
| | | import PlayerGoldInvest
|
| | | import PlayerSuperDiscount
|
| | | import PlayerActTurntable
|
| | | import PlayerTongTianLing
|
| | | import PlayerZhanling
|
| | |
| | | PayOrderType_PayCoin, # 代币 6
|
| | | ) = range(1, 1 + 6)
|
| | |
|
| | | PayOrderType_Default = PayOrderType_VND
|
| | | PayOrderType_Default = PayOrderType_USD
|
| | |
|
| | | # 充值类型定义
|
| | | PayType_Gold = 2 # 常规仙玉充值
|
| | |
| | | DataRecordPack.DR_CTGError(curPlayer, "Can not found the orderInfo.", addDRDict)
|
| | | return
|
| | |
|
| | | # 越南版本配表及coin均使用越南盾原值,但是验证用美元验证
|
| | | GameWorld.Log("越南充值验证美元: orderInfo=%s,orderCoin=%s,orderID=%s" % (orderInfo, orderCoin, orderID), curPlayer.GetPlayerID())
|
| | | # 英文1折版两种奖励,根据至尊卡判断, GetPayRMBNum-原价;GetUsdMoney-1折价格
|
| | | discountState = PlayerSuperDiscount.GetSuperDiscountState(curPlayer)
|
| | | GameWorld.Log("英文1折充值验证至尊卡: orderInfo=%s,orderCoin=%s,orderID=%s" % (orderInfo, orderCoin, orderID), curPlayer.GetPlayerID())
|
| | | orderCoinUsd = orderCoin # 入库的是美元分
|
| | | orderCoin = CommFunc.RMBToCoin(ipyData.GetPayRMBNum()) # 游戏内orderCoin转化为越南盾
|
| | | usdMoney = ipyData.GetUsdMoney()
|
| | | orderCoin = CommFunc.RMBToCoin(ipyData.GetPayRMBNum()) # 游戏内orderCoin为原价
|
| | | usdMoney = ipyData.GetUsdMoney() if discountState else ipyData.GetPayRMBNum()
|
| | | GameWorld.Log(" 转化后: orderInfo=%s,orderCoin=%s,orderCoinUsd=%s" % (orderInfo, orderCoin, orderCoinUsd), curPlayer.GetPlayerID())
|
| | | addDRDict["orderCoin"] = orderCoin
|
| | | addDRDict["orderCoinUsd"] = orderCoinUsd
|
| | | GameWorld.Log(" 充值验证: orderCoinUsd=%s,usdMoney=%s,discountState=%s" % (orderCoinUsd, usdMoney, discountState), curPlayer.GetPlayerID())
|
| | | if orderCoinUsd != CommFunc.RMBToCoin(usdMoney, 100):
|
| | | DataRecordPack.DR_CTGError(curPlayer, "The orderCoinUsd is not equal to the ipyData's UsdMoney(%s)!" % usdMoney, addDRDict)
|
| | | DataRecordPack.DR_CTGError(curPlayer, "The orderCoinUsd is not equal to the ipyData's UsdMoney(%s)! discountState=%s" % (usdMoney, discountState), addDRDict)
|
| | | return
|
| | |
|
| | | if payOrderType == PayOrderType_PayCoin:
|
| | |
| | | #投资
|
| | | if ctgIpyData:
|
| | | ctgID = ctgIpyData.GetRecordID()
|
| | | PlayerSuperDiscount.ActSuperDiscountByCTG(curPlayer, ctgID)
|
| | | PlayerGoldInvest.InvestByCTG(curPlayer, ctgID)
|
| | | PlayerGoldGift.OnGiftByCTGID(curPlayer, ctgID)
|
| | | PlayerZhanling.OnActiviteByCTGID(curPlayer, ctgID)
|