|
|
@@ -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
|