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
def getCommonConfig(clientId, configName): ''' 获取通用配置 透传给前端 ''' configs = configure.getTcContentByClientId('common.config', None, clientId, None) if not configs: return {} config = configs.get(configName, {}) return config
def getClubHeadPics(clientId): heads = configure.getTcContentByClientId('clubpics', None, clientId, None) if not heads: heads = configure.getTcContentByGameId('clubpics', None, HALL_GAMEID, clientId) return heads
def getDaShiFenFilter(clientId): info = configure.getTcContentByClientId('dashifen.filter', None, clientId, []) return info
def getUserHeadPics(clientId): heads = configure.getTcContentByClientId('headpics', None, clientId, None) if not heads: heads = configure.getTcContentByGameId('headpics', None, HALL_GAMEID, clientId) return heads