示例#1
0
def get_play_mode_config_by_clientId(clientId):
    """根据clientId获取自建桌支持的玩法列表"""
    key = 'room.other'
    intClientId = pokerconf.clientIdToNumber(clientId)
    play_mode_list = configure.getTcContentByClientId(key, None, intClientId, [])
    ftlog.debug('get_play_mode_config_by_clientId | clientId:', clientId, '| intClientId:', intClientId, '| play_mode_list:', play_mode_list)
    return play_mode_list
示例#2
0
def getCommonConfig(clientId, configName):
    '''
    获取通用配置
    透传给前端
    '''
    configs = configure.getTcContentByClientId('common.config', None, clientId,
                                               None)
    if not configs:
        return {}

    config = configs.get(configName, {})
    return config
示例#3
0
def getClubHeadPics(clientId):
    heads = configure.getTcContentByClientId('clubpics', None, clientId, None)
    if not heads:
        heads = configure.getTcContentByGameId('clubpics', None, HALL_GAMEID,
                                               clientId)
    return heads
示例#4
0
def getDaShiFenFilter(clientId):
    info = configure.getTcContentByClientId('dashifen.filter', None, clientId,
                                            [])
    return info
示例#5
0
文件: hallconf.py 项目: zhaozw/hall37
def getUserHeadPics(clientId):
    heads = configure.getTcContentByClientId('headpics', None, clientId, None)
    if not heads:
        heads = configure.getTcContentByGameId('headpics', None, HALL_GAMEID, clientId)
    return heads
示例#6
0
文件: hallconf.py 项目: zhaozw/hall37
def getDaShiFenFilter(clientId):
    info = configure.getTcContentByClientId('dashifen.filter', None, clientId, [])
    return info