3455 【后端】【1.0.15】【主干】优化GM命令CTG及GM工具CTG;
| | |
| | | import GameWorld
|
| | | import PlayerCoin
|
| | | import PlayerControl
|
| | | import IpyGameDataPY
|
| | | import ShareDefine
|
| | | import ChConfig
|
| | |
|
| | |
| | | return
|
| | |
|
| | | ctgValue = str(msgList[0])
|
| | | if ctgValue.isdigit():
|
| | | orderInfoIpyData = None
|
| | | if len(msgList) > 1:
|
| | | value2 = str(msgList[1])
|
| | | orderInfoIpyData = IpyGameDataPY.GetIpyGameDataNotLog("OrderInfo", ctgValue, value2)
|
| | | |
| | | if not orderInfoIpyData and ctgValue.isdigit():
|
| | | orderRMB = int(ctgValue)
|
| | | isAddBourseMoney = msgList[1] if len(msgList) > 1 else 1
|
| | | PlayerCoin.PlayerCoinToGoldEx(curPlayer, orderRMB, ChConfig.Def_GiveMoney_CTG, isAddBourseMoney)
|
| | |
| | | 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:
|