hxp
2026-03-06 e4a73fcd808bcf5e22099b73f2bc98e8b6ee84c6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/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