|
|
@@ -553,7 +553,6 @@ function onLogin(human, funcID)
|
|
|
end
|
|
|
end
|
|
|
else
|
|
|
- print("[CommerceManger_onLogin] 111111111")
|
|
|
-- 不在活动中
|
|
|
local tCommonDBData = CommonDB.GetCommerceActInfo()
|
|
|
if not tCommonDBData or nil == _G.next(tCommonDBData) then
|
|
|
@@ -566,15 +565,11 @@ function onLogin(human, funcID)
|
|
|
return
|
|
|
end
|
|
|
|
|
|
- print("[CommerceManger_onLogin] 222222222222")
|
|
|
-
|
|
|
-- 不存在对应DB数据
|
|
|
if not human.db.ServerCommerce then
|
|
|
return
|
|
|
end
|
|
|
|
|
|
- print("[CommerceManger_onLogin] 33333333333")
|
|
|
-
|
|
|
-- 未发送个人邮件都是未上榜的
|
|
|
local bSendPlayerMail = CommerveManager_GetHumanSendPlayerMail(human)
|
|
|
if false == bSendPlayerMail and CommerceAct_GetHumanPoint(human) >= 1 then
|
|
|
@@ -582,18 +577,22 @@ function onLogin(human, funcID)
|
|
|
CommerveManager_SetHumanSendPlayerMail(human, true)
|
|
|
ServerCommerceActRank.CommercerActRank_SendHumanMailHumanLogin(human)
|
|
|
else
|
|
|
- CommerveManager_SetHumanSendServerMail(human, true)
|
|
|
+ --CommerveManager_SetHumanSendServerMail(human, true)
|
|
|
print("[CommerceManger_onLogin] 个人奖励 已经发送过了或积分不满足条件 name = "..human.db.name)
|
|
|
end
|
|
|
|
|
|
-- 全服邮件
|
|
|
local bSendServerMail = CommerveManager_GetHumanSendServerMail(human)
|
|
|
+ local nSendServer = true == bSendServerMail and 1 or 0
|
|
|
+ local nHumanPoint = CommerceAct_GetHumanPoint(human)
|
|
|
if false == bSendServerMail and 1 == tCommonDBData.nSendRankMail and CommerceAct_GetHumanPoint(human) >= 1 then
|
|
|
print("[CommerceManger_onLogin] 全服邮件奖励开始发送 name = "..human.db.name)
|
|
|
- CommerveManager_SetHumanSendServerMail(human, true)
|
|
|
ServerCommerceActRank.CommercerActRank_SendServerMailHumanLogin(human)
|
|
|
- else
|
|
|
CommerveManager_SetHumanSendServerMail(human, true)
|
|
|
+ else
|
|
|
+ CommerveManager_WriteLog("[CommerceManger_onLogin] 玩家条件不满足 nSendServer = "..nSendServer.." nHumanPoint = "
|
|
|
+ ..nHumanPoint.." tCommonDBData.nSendRankMail = "..tCommonDBData.nSendRankMail, human)
|
|
|
+ --CommerveManager_SetHumanSendServerMail(human, true)
|
|
|
print("[CommerceManger_onLogin] 全服邮件奖励 已经发送过了或积分不满足条件 name = "..human.db.name)
|
|
|
end
|
|
|
end
|