From 45a66fe5bc2e28c9c2f50ed26092c744eddf1663 Mon Sep 17 00:00:00 2001 From: kubbo <390378816@qq.com> Date: Fri, 18 Apr 2025 22:21:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(Common):=20=E4=BF=AE=E5=A4=8D=E9=80=9A?= =?UTF-8?q?=E7=A0=81=E5=85=91=E6=8D=A2=E4=B8=AD=E7=9A=84=E7=AD=89=E7=BA=A7?= =?UTF-8?q?=E9=99=90=E5=88=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了 UseCommonCDKey 函数中的调试打印语句 - 增加了对特定通码的等级限制检查,防止低等级账号兑换 - 优化了兑换流程,提高了系统安全性 --- LogicServer/data/functions/ActorSystems/Common/Cdkey.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/LogicServer/data/functions/ActorSystems/Common/Cdkey.lua b/LogicServer/data/functions/ActorSystems/Common/Cdkey.lua index 1d94b8a..49c4b8f 100755 --- a/LogicServer/data/functions/ActorSystems/Common/Cdkey.lua +++ b/LogicServer/data/functions/ActorSystems/Common/Cdkey.lua @@ -243,7 +243,6 @@ end --使用通码 function UseCommonCDKey(pActor, code) - print("[DEBUG] UseCommonCDKey, code="..code) local data = getActorData(pActor) local time = System.getCurrMiniTime() @@ -252,6 +251,12 @@ function UseCommonCDKey(pActor, code) return end + -- 2025-4-15 12转130级才能领取 + if Actor.checkCommonLimit(pActor,130,12,0,0) == false and code == "tiancijiyuan" then + Actor.sendTipmsg(pActor,"请不要使用小号注册进行刷去奖励!") + return + end + if CommonCDKeyConf[code].switch == 0 then local npack = DataPack.allocPacket(pActor, enMiscSystemID, sUseCdkey) if npack then