From 58897b0f046179eb8f350380612a00db9e24fade Mon Sep 17 00:00:00 2001 From: kubbo <390378816@qq.com> Date: Sun, 23 Feb 2025 14:51:33 +0800 Subject: [PATCH] =?UTF-8?q?refactor(LogicServer):=20=E7=A7=BB=E9=99=A4=207?= =?UTF-8?q?=E6=B8=B8=E6=88=8F=20=E5=B9=B3=E5=8F=B0=E7=A6=8F=E5=88=A9?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 删除了 Platform7youxi 配置文件 - 移除了 ActivityType10023 模块 - 从 GameConfigs.txt 中移除了 Platform7youxi 的引用 --- .../Platform7youxi/Platform7youxi.config | 6 -- .../functions/Activity/ActivityType10023.lua | 59 ------------------- LogicServer/data/functions/GameConfigs.txt | 1 - 3 files changed, 66 deletions(-) delete mode 100755 LogicServer/data/config/Platform7youxi/Platform7youxi.config delete mode 100755 LogicServer/data/functions/Activity/ActivityType10023.lua diff --git a/LogicServer/data/config/Platform7youxi/Platform7youxi.config b/LogicServer/data/config/Platform7youxi/Platform7youxi.config deleted file mode 100755 index ffa70f6..0000000 --- a/LogicServer/data/config/Platform7youxi/Platform7youxi.config +++ /dev/null @@ -1,6 +0,0 @@ ---P-平台福利7游戏.xlsx 7游戏 -Platform7youxiConfig={ - type = 5, - SPID = "16", - limit = 10000, -} \ No newline at end of file diff --git a/LogicServer/data/functions/Activity/ActivityType10023.lua b/LogicServer/data/functions/Activity/ActivityType10023.lua deleted file mode 100755 index 5f337dd..0000000 --- a/LogicServer/data/functions/Activity/ActivityType10023.lua +++ /dev/null @@ -1,59 +0,0 @@ -module("ActivityType10023", package.seeall) - - ---活动类型 -ActivityType = 10023 ---对应的活动配置 -ActivityConfig = Platform7youxiConfig -local PfId = System.getPfId() - - --------------------------------------------------------------------- --- CPP回调 --------------------------------------------------------------------- - --- 7游戏玩家登录 -function On7GameLogin(pActor) - print("[Tip] ActivityType10023 On7GameLogin") - - -- 平台验证 - if not PfId then - print("[Tip] ActivityType10023 On7GameLogin not PfId") - return - end - if not ActivityConfig then - print("[Tip] ActivityType10023 On7GameLogin not ActivityConfig") - return - end - if not ActivityConfig.SPID then - print("[Tip] ActivityType10023 On7GameLogin not ActivityConfig.SPID") - return - end - if tostring(PfId) ~= tostring(ActivityConfig.SPID) then - print("[Tip] [非本平台活动]") - return --非本平台活动 - end - - - local npack = DataPack.allocPacket(pActor, enPlatforMwelfareID, sSend7GameGitfData) - if npack then - print("[Tip] ActivityType10023 On7GameLogin sSend7GameGitfData ") - local nCurYuanBaoCount = Actor.getIntProperty(pActor,PROP_ACTOR_DRAW_YB_COUNT) - - local nGiftFlag = 0; - local cdkdata = getActorCdkData(pActor) - if cdkdata then - if cdkdata.codeTypeTimes and PlatformConfig.type then - if cdkdata.codeTypeTimes[PlatformConfig.type] then - nGiftFlag = 1; - end - end - end - - print("[Tip] ActivityType10023 On7GameLogin sSend7GameGitfData nGiftFlag : "..nGiftFlag) - - DataPack.writeByte(npack, (nGiftFlag or 0)) -- 是否领取 7游戏 微信礼包 0否1是 - DataPack.flush(npack) - end -end - diff --git a/LogicServer/data/functions/GameConfigs.txt b/LogicServer/data/functions/GameConfigs.txt index a599930..b913f37 100755 --- a/LogicServer/data/functions/GameConfigs.txt +++ b/LogicServer/data/functions/GameConfigs.txt @@ -67,7 +67,6 @@ --平台活动 --#include "data/config/Platform360/Platform360.config" once --360大玩家特权 ---#include "data/config/Platform7youxi/Platform7youxi.config" once --7游戏 微信礼包 --#include "data/config/Platformludashi/Ludashimember.config" once --鲁大师 会员 --#include "data/config/Platformludashi/Ludashivip.config" once --鲁大师 vip --#include "data/config/Platformludashi/Platformludashi.config" once --鲁大师