| | |
| | | # tagHead Head;
|
| | | #};
|
| | | def OnQueryRecharge(index, packData, tick):
|
| | | curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | | if tick - curPlayer.GetDictByKey("QRtick") < 10000:
|
| | | return
|
| | | curPlayer.SetDict("QRtick", tick)
|
| | | curPlayer.SendDBQueryRecharge()
|
| | | #curPlayer = GameWorld.GetPlayerManager().GetPlayerByIndex(index)
|
| | | #if tick - curPlayer.GetDictByKey("QRtick") < 10000:
|
| | | # return
|
| | | #curPlayer.SetDict("QRtick", tick)
|
| | | #curPlayer.SendDBQueryRecharge() 不查了,由在线轮询触发即可
|
| | | return
|
| | |
|
| | | #// A1 23 查询充值次数 #tagCMQueryCoinToGoldCount
|
| | |
| | | cPlayerCoin.isAddBourseMoney = isAddBourseMoney
|
| | | return PlayerCoinToGold(curPlayer, cPlayerCoin, eventName)
|
| | |
|
| | | def OnDBPushRecharge(curPlayer, orderID, orderInfo, orderAmount):
|
| | | cPlayerCoin = CPY_PlayerCoinToGold()
|
| | | cPlayerCoin.useCoin = orderAmount
|
| | | cPlayerCoin.orderID = orderID
|
| | | cPlayerCoin.orderInfo = orderInfo
|
| | | cPlayerCoin.isAddBourseMoney = True
|
| | | GameWorld.Log("OnDBPushRecharge: useCoin=%s,orderInfo=%s,orderID=%s" % (cPlayerCoin.useCoin, cPlayerCoin.orderInfo, cPlayerCoin.orderID), curPlayer.GetPlayerID())
|
| | | return PlayerCoinToGold(curPlayer, cPlayerCoin, ChConfig.Def_GiveMoney_CoinToGold)
|
| | |
|
| | | ##特别说明:充值赠送点券都要计算到各个活动中
|
| | | ##玩家点卷兑换元宝.
|
| | | # @param curPlayer 玩家实例
|
| | |
| | | orderInfo = chargeInfo.GetOrderInfo() # 商品编号
|
| | | orderID = chargeInfo.GetOrderID() #订单号,兑换成功后清除
|
| | | isAddBourseMoney = chargeInfo.GetIsAddBourseMoney()
|
| | | if orderID:
|
| | | curPlayer.SendDBFinishRecharge(orderID)
|
| | | |
| | | #if orderID:
|
| | | # curPlayer.SendDBFinishRecharge(orderID)
|
| | | |
| | | appID = chargeInfo.GetAppID()
|
| | | if not appID:
|
| | | appID = GameWorld.GetPlayerPlatform(curPlayer)
|
| | | if not appID:
|
| | | appID = GameWorld.GetAppIDByAccID(curPlayer.GetAccID())
|
| | | GameWorld.DebugLog("GetAppIDByAccID appID=%s" % appID)
|
| | | addDRDict = {"orderCoin":orderCoin, "orderInfo":orderInfo, "orderID":orderID,
|
| | | "isAddBourseMoney":isAddBourseMoney, "eventName":eventName, "appID":appID}
|
| | |
|
| | |
| | | recordID = ctgIpyData.GetRecordID() if ctgIpyData else 0
|
| | | Sync_CoinToGoldReport(curPlayer, orderID, orderCoin, recordID, orderInfo)
|
| | |
|
| | | curPlayer.SendDBQueryRecharge()
|
| | | #curPlayer.SendDBQueryRecharge() 不查了,由在线轮询触发即可
|
| | | return True
|
| | |
|
| | | def __GetCTGInfoByID(curPlayer, recordID, addDRDict):
|