#!/usr/bin/python
|
# -*- coding: GBK -*-
|
#-------------------------------------------------------------------------------
|
#
|
##@package PyMongoDB.GMToolLogicProcess.Commands.GMT_GetPlayerForbid
|
#
|
# @todo:GM¹¤¾ßÃüÁî - ²é¿´Íæ¼Ò½ûÑÔ·â½û״̬
|
# @author hxp
|
# @date 2026-03-06
|
# @version 1.0
|
#
|
# ÏêϸÃèÊö: GM¹¤¾ßÃüÁî - ²é¿´Íæ¼Ò½ûÑÔ·â½û״̬
|
#
|
#-------------------------------------------------------------------------------
|
#"""Version = 2026-03-06 15:00"""
|
#-------------------------------------------------------------------------------
|
|
import GMCommon
|
|
def OnExec(gmCmdDict):
|
errorMsg = ""
|
from GMToolLogicProcess import ProjSpecialProcess
|
Result, curPlayer = ProjSpecialProcess.GMCmdPlayerValidation(gmCmdDict, False)
|
if Result == GMCommon.Def_PlayerOfLine:
|
dbPlayer = curPlayer
|
accState = dbPlayer.AccState
|
|
elif Result == GMCommon.Def_Success:
|
accState = curPlayer.GetAccState()
|
|
else:
|
return Result, errorMsg
|
|
forbidInfo = {
|
'forbidLogin':(accState & pow(2, GMCommon.Def_PysForbidByPy)) > 0, #ÊÇ·ñËø¶¨
|
'forbidTalk': (accState & pow(2, GMCommon.Def_PysForbidTalk)) > 0, #ÊÇ·ñ½ûÑÔ
|
#'forbidTalk': (accState & pow(2, GMCommon.Def_PysForbidTalk)) > 0 or (accState & pow(2, GMCommon.Def_PysForbidTalkDevice)) > 0, #ÊÇ·ñ½ûÑÔ
|
}
|
return GMCommon.Def_Success, forbidInfo
|