From 3daa2283327ef5e37e4d1ce015c3e30ff89d4e5c Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 27 二月 2024 13:31:49 +0800 Subject: [PATCH] 10135 【港台】【主干】【砍树】【后端】支持代金券购买(限制使用代币购买充值代币) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py index dae9168..b965f5c 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py @@ -417,6 +417,12 @@ return if payOrderType == PayOrderType_PayCoin: + if ipyData.GetCTGID(): + ctgIpyData = IpyGameDataPY.GetIpyGameData("CTG", ipyData.GetCTGID()) + if ctgIpyData: + if ctgIpyData.GetPayType() == PayType_PayCoin: + GameWorld.ErrLog("代币可不用于支付代币充值!appID=%s,orderInfo=%s" % (appID, orderInfo), curPlayer.GetPlayerID()) + return #直接扣,类似充值扣钱,这里是发放物品,可能会有发放失败的当做 CTGError 处理 if not PlayerControl.PayMoney(curPlayer, ShareDefine.TYPE_Price_PayCoin, orderCoin, eventName, {ChConfig.Def_Cost_Reason_SonKey:orderInfo}): GameWorld.ErrLog("代币不足! appID=%s,orderInfo=%s,orderCoin=%s,curPayCoin=%s" -- Gitblit v1.8.0