| | |
| | | return dbPlayer
|
| | | return rec
|
| | |
|
| | | def updateDBPlayerName(self, playerID, newName):
|
| | | ## 根据玩家ID更新dbPlayer的玩家名,一般是改名用
|
| | | col = self.db[UCN_DBPlayer]
|
| | | dbPlayer = DataServerPlayerData.tagDBPlayer()
|
| | | if not dbPlayer.adoLoadCEx(col, {"PlayerID":playerID}):
|
| | | return
|
| | | dbPlayer.PlayerName = newName
|
| | | return dbPlayer.adoUpdateC(col)
|
| | | |
| | | def requestLogicProcess(self, pack):
|
| | | db = self.db
|
| | | if self.IsMergeServer():
|
| | |
| | | #===================================================================
|
| | |
|
| | | #if "@test@" in accountRec.ACCID or "@yun@" in accountRec.ACCID or accountRec.RegIP == "127.0.0.1":
|
| | | if CommonDefine.IsDebug() or accountRec.RegIP == "127.0.0.1":
|
| | | if CommonDefine.IsDebug() or accountRec.RegIP == "127.0.0.1" or CommonDefine.IsInsideLogin():
|
| | | #debug内部服务器不验证token, 脱机挂玩家不验证
|
| | | mylog.debug('iner no check')
|
| | | pass
|