|
|
@@ -6,6 +6,7 @@ local RoleDBLogic = require("role.RoleDBLogic")
|
|
|
local Log = require("common.Log")
|
|
|
local LogDefine = require("common.LogDefine")
|
|
|
local DataCache = require("core.DataCache")
|
|
|
+local Config = require("Config")
|
|
|
|
|
|
local RoleList = {}
|
|
|
local function delRoles()
|
|
|
@@ -13,7 +14,7 @@ local function delRoles()
|
|
|
|
|
|
local player_uuid_list = {}
|
|
|
|
|
|
- LuaMongo.find(DB.db_char, nil, {lastLoginTime = 1, lastLogoutTime = 1, lv = 1, zuanshi = 1, buy = 1, account = 1})
|
|
|
+ LuaMongo.find(DB.db_char, nil, {lastLoginTime = 1, lastLogoutTime = 1, lv = 1, zuanshi = 1, buy = 1, account = 1, createTime = 1 })
|
|
|
local list = {}
|
|
|
RoleList = {}
|
|
|
local allCnt = 0
|
|
|
@@ -51,13 +52,29 @@ local function delRoles()
|
|
|
if maxLogoutTime
|
|
|
and (not data.buy or Util.getTableCount(data.buy) == 0)
|
|
|
and maxLogoutTime < logoutTime
|
|
|
- then
|
|
|
- list[delCnt + 1] = data._id
|
|
|
- RoleList[data._id] = nil
|
|
|
- delCnt = delCnt + 1
|
|
|
+ then
|
|
|
+ -- 临时屏蔽
|
|
|
+ -- list[delCnt + 1] = data._id
|
|
|
+ -- RoleList[data._id] = nil
|
|
|
+ -- delCnt = delCnt + 1
|
|
|
else
|
|
|
player_uuid_list[data._id] = data.lv
|
|
|
end
|
|
|
+
|
|
|
+
|
|
|
+ -- 临时处理
|
|
|
+ if Config.SVR_INDEX == 810548 and table.find(Config.SVR_CHANEL, 1) then
|
|
|
+ local startTime1 = Util.getDayStartTime(data.createTime)
|
|
|
+ local startTime2 = Util.getDayStartTime(os.time())
|
|
|
+ if startTime1 == startTime2 then
|
|
|
+ list[delCnt + 1] = data._id
|
|
|
+ RoleList[data._id] = nil
|
|
|
+ delCnt = delCnt + 1
|
|
|
+ end
|
|
|
+ end
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
end
|
|
|
|
|
|
_G.collectgarbage("step", 1000000)
|