| | |
| | | if not curPlayer or curPlayer.IsEmpty():
|
| | | return
|
| | |
|
| | | Result = GMCommon.Def_Success
|
| | | Result = GMCommon.Def_Unknow
|
| | | orderId, value, appID, isAddBourseMoney, isResult = packCMDList
|
| | |
|
| | | goldBefore = curPlayer.GetGold()
|
| | |
| | | errorMsg = "Can not found the orderInfo(%s) and appID(%s)!" % (value, appID)
|
| | |
|
| | | if errorMsg:
|
| | | GameWorld.Log("GMT_CTG, errorMsg=%s" % errorMsg)
|
| | | GameWorld.Log("GMT_CTG, errorMsg=%s" % errorMsg, query_ID)
|
| | | resultMsg = str([orderId, errorMsg, 'GMT_CTG', Result])
|
| | | GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, 'GMToolResult', resultMsg, len(resultMsg))
|
| | | return
|
| | |
|
| | | if not orderInfoIpyData and value.isdigit():
|
| | | orderRMB = int(value)
|
| | | PlayerCoin.PlayerCoinToGoldEx(curPlayer, orderRMB, ChConfig.Def_GiveMoney_GMTCTG, isAddBourseMoney)
|
| | | orderRMB = GameWorld.ToNumDef(value, None)
|
| | | if not orderInfoIpyData and orderRMB != None:
|
| | | if PlayerCoin.PlayerCoinToGoldEx(curPlayer, orderRMB, ChConfig.Def_GiveMoney_GMTCTG, isAddBourseMoney):
|
| | | Result = GMCommon.Def_Success |
| | | else:
|
| | | errorMsg = "order error! value(%s)" % (value) |
| | | else:
|
| | | orderInfo = value
|
| | | if not PlayerCoin.DoGMCTG(curPlayer, orderInfo, appID, isAddBourseMoney, ChConfig.Def_GiveMoney_GMTCTG):
|
| | | Result = GMCommon.Def_Unknow
|
| | | if PlayerCoin.DoGMCTG(curPlayer, orderInfo, appID, isAddBourseMoney, ChConfig.Def_GiveMoney_GMTCTG):
|
| | | Result = GMCommon.Def_Success
|
| | | else:
|
| | | errorMsg = "orderInfo error! appID(%s), value(%s)" % (appID, value)
|
| | |
|
| | | if Result != GMCommon.Def_Success:
|
| | | GameWorld.Log("GMT_CTG, errorMsg=%s" % errorMsg, query_ID)
|
| | | resultMsg = str([orderId, errorMsg, 'GMT_CTG', Result])
|
| | | GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(0, 0, 0, 'GMToolResult', resultMsg, len(resultMsg))
|
| | | return
|
| | | |
| | | goldAfter = curPlayer.GetGold()
|
| | | changeCoinPointAfter = curPlayer.GetChangeCoinPointTotal()
|
| | | bourseMoneyAfter = PlayerControl.GetMoney(curPlayer, ShareDefine.TYPE_Price_BourseMoney)
|
| | |
| | | "gold":[goldBefore, goldAfter], "changeCoinPoint":[changeCoinPointBefore, changeCoinPointAfter],
|
| | | "bourseMoney":[bourseMoneyBefore, bourseMoneyAfter]}
|
| | |
|
| | | GameWorld.Log("GMT_CTG, resultDict=%s" % resultDict)
|
| | | GameWorld.Log("GMT_CTG, resultDict=%s" % resultDict, query_ID)
|
| | | #流向 增加金额记录
|
| | | DataRecordPack.DR_ToolGMOperate(query_ID, curPlayer.GetPlayerName(), curPlayer.GetAccID(), 'GMT_CTG', resultDict)
|
| | |
|