Commit 2f7891b47950a8d4e3b8759346fd6b22d0873fc6

Authored by zhouhaihai
1 parent 10ea6c0f

运营需要

src/actions/RoleAction.lua
... ... @@ -160,6 +160,7 @@ function _M.loginRpc( agent, data )
160 160 local resetMode = role:updateTimeReset(now)
161 161 if not resetMode or not resetMode["CrossDay"] then -- 没有跨天
162 162 role.activity:checkActivityStatus(now, false, false)
  163 + role:log("onLogin")
163 164 end
164 165  
165 166 redisproxy:zadd(FRIEND_RECOMMEND, now, roleId)
... ... @@ -291,7 +292,6 @@ function _M.loginRpc( agent, data )
291 292 role:savePvpHTeam()
292 293  
293 294 local hangPass = role:getProperty("hangPass")
294   - role:log("onLogin")
295 295 role:mylog("login", {key1 = agent.ip:toArray(false, ":")[1], int1 = hangPass[1] or 0})
296 296 if msg.newdevice then
297 297 role:mylog("newdevice", {key1 = agent.ip:toArray(false, ":")[1]})
... ...
src/models/RoleTimeReset.lua
... ... @@ -20,6 +20,7 @@ ResetFunc["CrossDay"] = function(self, notify, response, now)
20 20  
21 21 response.dTask = {}
22 22 response.advSup = self:getProperty("advSup")
  23 + self:log("onLogin")
23 24 end
24 25  
25 26 ResetFunc["CrossWeek"] = function(self, notify, response)
... ...