Quellcode durchsuchen

屏蔽无用封号代码

gitxsm vor 1 Jahr
Ursprung
Commit
af38b71ba2
1 geänderte Dateien mit 19 neuen und 19 gelöschten Zeilen
  1. 19 19
      script/module/scene/Handler.lua

+ 19 - 19
script/module/scene/Handler.lua

@@ -213,32 +213,32 @@ function CG_ASK_LOGIN(fd, msg)
 
 	if human.db == nil then
 		-- 新号
-        local ip,time = CommonDB.getBanIp(msg.ip)
-        if (time and time > os.time()) then
-            ObjHuman.doDisconnect(human, CommonDefine.DISCONNECT_BANIP)
-			return
-        else
-            CommonDB.delBanIp(msg.ip)
-        end
+        -- local ip,time = CommonDB.getBanIp(msg.ip)
+        -- if (time and time > os.time()) then
+        --     ObjHuman.doDisconnect(human, CommonDefine.DISCONNECT_BANIP)
+		-- 	return
+        -- else
+        --     CommonDB.delBanIp(msg.ip)
+        -- end
 		
 		Log.write(Log.LOGID_OSS_CREATELOSS,account, "", LogDefine.HUMAN_LOST.ENTRANCE, human.ip, human.pf, human.appid, human.phpChanelID)
 		CreateRole.createNewRole(human)
 		-- HumanLogin_Handle(human, params)
 	else
 		-- 封号
-		if human.db.banUserTime == -1 or 
-			(human.db.banUserTime and human.db.banUserTime > os.time()) then
-			ObjHuman.doDisconnect(human, CommonDefine.DISCONNECT_BANUSER)
-			return
-		end
+		-- if human.db.banUserTime == -1 or 
+		-- 	(human.db.banUserTime and human.db.banUserTime > os.time()) then
+		-- 	ObjHuman.doDisconnect(human, CommonDefine.DISCONNECT_BANUSER)
+		-- 	return
+		-- end
 
-        local ip,time = CommonDB.getBanIp(msg.ip)
-        if (time and time > os.time()) then
-			ObjHuman.doDisconnect(human, CommonDefine.DISCONNECT_BANIP)
-			return
-        else
-            CommonDB.delBanIp(msg.ip)
-        end
+        -- local ip,time = CommonDB.getBanIp(msg.ip)
+        -- if (time and time > os.time()) then
+		-- 	ObjHuman.doDisconnect(human, CommonDefine.DISCONNECT_BANIP)
+		-- 	return
+        -- else
+        --     CommonDB.delBanIp(msg.ip)
+        -- end
 		ObjHuman.onLogin(human, nil)
 		-- HumanLogin_Handle(human, params)
 	end