refactor(Activity): 移除妖豆平台相关代码
- 删除了 PlatformYaodou 配置文件 - 移除了 ActivityType10030 模块 - 更新了 Activitys.txt,移除 ActivityType10030 的引用 - 更新了 GameConfigs.txt,移除 PlatformYaodou 配置的引用
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
--P-平台福利妖豆.xlsx Sheet1
|
||||
PlatformYaodouConfig={
|
||||
CDkeytype = 1,
|
||||
SPID = "18",
|
||||
}
|
||||
@@ -1,130 +0,0 @@
|
||||
module("ActivityType10030", package.seeall)
|
||||
|
||||
|
||||
--[[
|
||||
个人数据:userData
|
||||
{
|
||||
SVIPGiftFlag = 0 or 1 yaodou SVIP 礼包领取标志
|
||||
}
|
||||
]]--
|
||||
|
||||
|
||||
local PfId = System.getPfId()
|
||||
|
||||
|
||||
--活动类型
|
||||
ActivityType = 10029
|
||||
--对应的活动配置
|
||||
ActivityConfig = PlatformYaodouConfig
|
||||
|
||||
|
||||
function GetYaoDouUserData(pActor)
|
||||
local var = Actor.getStaticVar(pActor)
|
||||
if nil == var.YaoDouUserData then
|
||||
var.YaoDouUserData = {}
|
||||
end
|
||||
return var.YaoDouUserData
|
||||
end
|
||||
|
||||
function SendYaoDouUserData(pActor)
|
||||
print("[Tip] ActivityType10030 SendYaoDouUserData")
|
||||
local userData = GetYaoDouUserData(pActor)
|
||||
local npack = DataPack.allocPacket(pActor, enPlatforMwelfareID, sSendYaoDouUserData)
|
||||
if npack then
|
||||
DataPack.writeByte(npack, userData.SVIPGiftFlag)
|
||||
DataPack.flush(npack)
|
||||
end
|
||||
end
|
||||
|
||||
--------------------------------------------------------------------
|
||||
-- 客户端请求协议回调
|
||||
--------------------------------------------------------------------
|
||||
|
||||
|
||||
-- 检查玩家 SVIP 礼包领取状态
|
||||
function CheckSVIPGift(pActor)
|
||||
print("[Tip] ActivityType10030 CheckSVIPGift")
|
||||
|
||||
if not ActivityConfig or not ActivityConfig.CDkeytype then
|
||||
print("[Tip] ActivityType10030 CheckSVIPGift")
|
||||
return
|
||||
end
|
||||
|
||||
local userData = GetYaoDouUserData(pActor)
|
||||
local cdkdata = getActorCdkData(pActor)
|
||||
if cdkdata then
|
||||
-- 超级vip奖励
|
||||
if cdkdata.codeTypeTimes then
|
||||
if cdkdata.codeTypeTimes[ActivityConfig.CDkeytype] then
|
||||
userData.SVIPGiftFlag = 1
|
||||
else
|
||||
print("[Tip] ActivityType10030 CheckSVIPGift not cdkdata.codeTypeTimes[ActivityConfig.CDkeytype]")
|
||||
end
|
||||
else
|
||||
print("[Tip] ActivityType10030 CheckSVIPGift not cdkdata.codeTypeTimes")
|
||||
end
|
||||
else
|
||||
print("[Tip] ActivityType10030 CheckSVIPGift not cdkdata")
|
||||
end
|
||||
|
||||
SendYaoDouUserData(pActor)
|
||||
end
|
||||
|
||||
-- yaodou玩家登录
|
||||
function OnReqYaoDouLogin(pActor)
|
||||
print("[Tip] ActivityType10030 OnReqYaoDouLogin")
|
||||
|
||||
-- 平台验证
|
||||
if not PfId then
|
||||
print("[Tip] ActivityType10030 OnReqYaoDouLogin not PfId")
|
||||
return
|
||||
end
|
||||
if not ActivityConfig then
|
||||
print("[Tip] ActivityType10030 OnReqYaoDouLogin not ActivityConfig")
|
||||
return
|
||||
end
|
||||
if not ActivityConfig.SPID then
|
||||
print("[Tip] ActivityType10030 OnReqYaoDouLogin not ActivityConfig.SPID")
|
||||
return
|
||||
end
|
||||
if tostring(PfId) ~= tostring(ActivityConfig.SPID) then
|
||||
print("[Tip] ActivityType10030 OnReqYaoDouLogin [非本平台活动]")
|
||||
return --非本平台活动
|
||||
end
|
||||
|
||||
local userData = GetYaoDouUserData(pActor)
|
||||
|
||||
if nil == userData.SVIPGiftFlag then
|
||||
userData.SVIPGiftFlag = 0
|
||||
end
|
||||
|
||||
SendYaoDouUserData(pActor)
|
||||
end
|
||||
|
||||
-- 请求yaodou礼包
|
||||
function OnReqYaoDouGift(pActor)
|
||||
print("[Tip] ActivityType10030 OnReqYaoDouGift")
|
||||
|
||||
-- 平台验证
|
||||
if not PfId then
|
||||
print("[Tip] ActivityType10030 OnReqYaoDouGift not PfId")
|
||||
return
|
||||
end
|
||||
if not ActivityConfig then
|
||||
print("[Tip] ActivityType10030 OnReqYaoDouGift not ActivityConfig")
|
||||
return
|
||||
end
|
||||
if not ActivityConfig.SPID then
|
||||
print("[Tip] ActivityType10030 OnReqYaoDouGift not ActivityConfig.SPID")
|
||||
return
|
||||
end
|
||||
if tostring(PfId) ~= tostring(ActivityConfig.SPID) then
|
||||
print("[Tip] ActivityType10030 OnReqYaoDouGift [非本平台活动]")
|
||||
return --非本平台活动
|
||||
end
|
||||
|
||||
CheckSVIPGift(pActor)
|
||||
end
|
||||
|
||||
NetmsgDispatcher.Reg(enPlatforMwelfareID, cReqYaoDouLogin, OnReqYaoDouLogin)
|
||||
NetmsgDispatcher.Reg(enPlatforMwelfareID, cReqYaoDouGift, OnReqYaoDouGift)
|
||||
@@ -51,7 +51,6 @@ require("Activity.ActivityType10021") --个人活动:二充
|
||||
require("Activity.ActivityType10022") --玩法:360大玩家特权
|
||||
require("Activity.ActivityType10024") --鲁大师
|
||||
require("Activity.ActivityType10027") --ku25
|
||||
require("Activity.ActivityType10030") --yaodou
|
||||
require("Activity.ActivityType10031") --贪玩
|
||||
require("Activity.ActivityType10032") --哥们
|
||||
require("Activity.ActivityType10033") --区服冠名
|
||||
|
||||
@@ -70,7 +70,6 @@
|
||||
--#include "data/config/Platformludashi/Ludashimember.config" once --鲁大师 会员
|
||||
--#include "data/config/Platformludashi/Ludashivip.config" once --鲁大师 vip
|
||||
--#include "data/config/Platformludashi/Platformludashi.config" once --鲁大师
|
||||
--#include "data/config/PlatformYaodou/PlatformYaodou.config" once --YaoDou
|
||||
--#include "data/config/PlatformTanwan/PlatformTanwan.config" once --贪玩
|
||||
--#include "data/config/PlatformGame2/PlatformGame2.config" once --哥们
|
||||
--#include "data/config/Platform2144/Platform2144.config" once --2144
|
||||
|
||||
Reference in New Issue
Block a user