| | |
| | | import GMCommon
|
| | | import ShareDefine
|
| | | import PlayerControl
|
| | | import IpyGameDataPY
|
| | | #---------------------------------------------------------------------
|
| | | #全局变量
|
| | | #---------------------------------------------------------------------
|
| | |
| | | changeCoinPointBefore = curPlayer.GetChangeCoinPointTotal()
|
| | | bourseMoneyBefore = PlayerControl.GetMoney(curPlayer, ShareDefine.TYPE_Price_BourseMoney)
|
| | |
|
| | | if value.isdigit():
|
| | | errorMsg = ""
|
| | | orderInfoIpyData = None
|
| | | if appID:
|
| | | orderInfoIpyData = IpyGameDataPY.GetIpyGameDataNotLog("OrderInfo", value, appID)
|
| | | if not orderInfoIpyData:
|
| | | Result = GMCommon.Def_ParamErr
|
| | | errorMsg = "Can not found the orderInfo(%s) and appID(%s)!" % (value, appID)
|
| | | |
| | | if errorMsg:
|
| | | GameWorld.Log("GMT_CTG, errorMsg=%s" % errorMsg)
|
| | | 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)
|
| | | else:
|