| | |
| | | value2 = str(msgList[1])
|
| | | orderInfoIpyData = IpyGameDataPY.GetIpyGameDataNotLog("OrderInfo", ctgValue, value2)
|
| | |
|
| | | if not orderInfoIpyData and ctgValue.isdigit():
|
| | | orderRMB = int(ctgValue)
|
| | | orderRMB = GameWorld.ToNumDef(ctgValue, None)
|
| | | if not orderInfoIpyData and orderRMB != None:
|
| | | isAddBourseMoney = msgList[1] if len(msgList) > 1 else 1
|
| | | PlayerCoin.PlayerCoinToGoldEx(curPlayer, orderRMB, ChConfig.Def_GiveMoney_CTG, isAddBourseMoney)
|
| | | if not PlayerCoin.PlayerCoinToGoldEx(curPlayer, orderRMB, ChConfig.Def_GiveMoney_CTG, isAddBourseMoney):
|
| | | GameWorld.DebugAnswer(curPlayer, "充值失败!请查看服务端日志!")
|
| | | return
|
| | | else:
|
| | | orderInfo = ctgValue
|
| | | appID = str(msgList[1]) if len(msgList) > 1 else ""
|
| | | isAddBourseMoney = msgList[2] if len(msgList) > 2 else 1
|
| | | if not appID:
|
| | | GameWorld.DebugAnswer(curPlayer, "需要指定商品编号所属AppID!")
|
| | | return
|
| | | if not appID or appID == "0":
|
| | | appID = GameWorld.GetPlayerPlatform(curPlayer)
|
| | | if not appID:
|
| | | GameWorld.DebugAnswer(curPlayer, "需要指定商品编号所属AppID!")
|
| | | return
|
| | | isOK = PlayerCoin.DoGMCTG(curPlayer, orderInfo, appID, isAddBourseMoney, ChConfig.Def_GiveMoney_CTG)
|
| | | if not isOK:
|
| | | GameWorld.DebugAnswer(curPlayer, "充值失败!请查看服务端日志!")
|