fix(Common): 修复通码兑换中的等级限制问题
- 移除了 UseCommonCDKey 函数中的调试打印语句 - 增加了对特定通码的等级限制检查,防止低等级账号兑换 - 优化了兑换流程,提高了系统安全性
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user