gitxsm 8 месяцев назад
Родитель
Сommit
bde5b08e28
2 измененных файлов с 0 добавлено и 53 удалено
  1. 0 20
      script/core/RoleDel.lua
  2. 0 33
      script/module/role/RoleDBLogic.lua

+ 0 - 20
script/core/RoleDel.lua

@@ -7,19 +7,13 @@ local Log = require("common.Log")
 local LogDefine = require("common.LogDefine")
 local DataCache = require("core.DataCache")
 
-local Config = require("Config")
 
 local RoleList = {}
 local function delRoles()
     _G.collectgarbage("step", 1000000)
 
 	local player_uuid_list = {}
-
 	LuaMongo.find(DB.db_char, nil, {lastLoginTime = 1, lastLogoutTime = 1, lv = 1, zuanshi = 1, buy = 1, account = 1})
-	-- 临时处理
-	-- local num = 0
-	-- LuaMongo.find(DB.db_char, nil, {lastLoginTime = 1, lastLogoutTime = 1, lv = 1, zuanshi = 1, buy = 1, account = 1, newUniqueTag = 1})
-
 	local list = {}
 	RoleList = {}
 	local allCnt = 0
@@ -64,20 +58,6 @@ local function delRoles()
 		else
 			player_uuid_list[data._id] = data.lv
 		end
-
-		-- 临时处理,处理视游2服异常账号
-		-- if table.find(Config.SVR_CHANEL, 10) and Config.SVR_INDEX == 810539 then
-		-- 	local uuTagTb = Util.split(data.newUniqueTag, "|")
-		-- 	if tonumber(uuTagTb[2]) == 2 then
-		-- 		num = num + 1
-		-- 		print("================delRole================", num)
-		-- 		list[delCnt + 1] = data._id
-		-- 		RoleList[data._id] = nil
-		-- 		delCnt = delCnt + 1
-		-- 	end
-		-- end
-
-
 	end
 	
     _G.collectgarbage("step", 1000000)

+ 0 - 33
script/module/role/RoleDBLogic.lua

@@ -597,20 +597,6 @@ local function handleNew(orgDB, newTable)
 end
 
 
--- local SERVER_START_IDX = 810537
-
--- --61服, 当前没合服到的最小服
--- local NO_MERGE_SERVER_IDX = 810598
-
-
-
--- local function changeROleSrvId(data)
--- 	local uuTagTb = Util.split(data.newUniqueTag, "|")
--- 	data.newUniqueTag = Generateuuid(uuTagTb[1], uuTagTb[3], 2)
--- end
-
-
-
 function roleDBInit()
     _G.collectgarbage("step", 1000000)
 
@@ -626,9 +612,6 @@ function roleDBInit()
         roleDBchanged = nil
         handleNew(data, newAddDBData)
 
-		-- 临时处理
-		-- roleDBchanged = true
-
         if roleDBchanged then
         	list[#list + 1] = data._id
         end
@@ -648,22 +631,6 @@ function roleDBInit()
         roleDBchanged = nil
         handleNew(data, newAddDBData)
 
-		--临时处理
-		-- if table.find(Config.SVR_CHANEL, 10) and Config.SVR_INDEX == 810539 then
-		-- 	roleDBchanged = true
-		-- 	changeROleSrvId(data)
-		-- end
-
-		-- -- 临时处理
-		-- roleDBchanged = true
-		-- local uuTagTb = Util.split(data.newUniqueTag, "|")
-		-- if tonumber(uuTagTb[2]) == 2 then
-		-- 	local d = os.date("*t",data.createTime)
-		-- 	local str = d.year.."-"..d.month.."-"..d.day.." "..d.hour..":"..d.min
-		-- 	print(string.format("====uuid: %s, name: %s, lv: %d, 充值: %d,创建时间: %s\n", data.newUniqueTag, data.name, data.lv, data.topupAcount or 0, str))
-		-- end
-
-
         if not roleDBchanged then
         	assert()
         end