Exemplo n.º 1
0
def getHallHtmlsInfo(clientId):
    try:
        gameId = strutil.getGameIdFromHallClientId(clientId)
        intClientId = pokerconf.clientIdToNumber(clientId)
        return configure.getGameTemplateInfo(gameId, 'htmls.info', intClientId, _adjustHallHtmlsInfo)
    except:
        ftlog.error('ERROR getHallHtmlsInfo clientId=', clientId)
Exemplo n.º 2
0
def getHallHtmlsInfo(clientId):
    try:
        gameId = strutil.getGameIdFromHallClientId(clientId)
        intClientId = pokerconf.clientIdToNumber(clientId)
        return configure.getGameTemplateInfo(gameId, 'htmls.info', intClientId,
                                             _adjustHallHtmlsInfo)
    except:
        ftlog.error('ERROR getHallHtmlsInfo clientId=', clientId)
Exemplo n.º 3
0
def getMoreGamesUpdateApks(clientId):
    try:
        gameId = strutil.getGameIdFromHallClientId(clientId)
        intClientId = pokerconf.clientIdToNumber(clientId)
        apks = configure.getGameTemplateInfo(gameId, 'more.games.apks', intClientId, None)
        if not apks:
            ftlog.error('ERROR, getMoreGamesUpdateApks clientId=', clientId)
        return apks
    except:
        ftlog.error('ERROR, getMoreGamesUpdateApks clientId=', clientId)
        return None
Exemplo n.º 4
0
def getMoreGamesUpdateApks(clientId):
    try:
        gameId = strutil.getGameIdFromHallClientId(clientId)
        intClientId = pokerconf.clientIdToNumber(clientId)
        apks = configure.getGameTemplateInfo(gameId, 'more.games.apks',
                                             intClientId, None)
        if not apks:
            ftlog.error('ERROR, getMoreGamesUpdateApks clientId=', clientId)
        return apks
    except:
        ftlog.error('ERROR, getMoreGamesUpdateApks clientId=', clientId)
        return None
Exemplo n.º 5
0
def getRoomWinLosePayInfo(bigRoomId, clientId):
    intClientId = pokerconf.clientIdToNumber(clientId)
    info = configure.getGameTemplateInfo(DIZHU_GAMEID, 'room.pay', intClientId)
    if not info:
        systype, _, _ = strutil.parseClientId(clientId)
        defalut = 'default_android'
        if systype == strutil.CLIENT_SYS_IOS:
            defalut = 'default_ios'
        templates = configure.getGameTemplates(DIZHU_GAMEID, 'room.pay')
        info = templates.get(defalut)
    if info:
        return info.get(str(bigRoomId))
    return None
Exemplo n.º 6
0
def getTableQuickInfo(clientId):
    intClientId = pokerconf.clientIdToNumber(clientId)
    info = configure.getGameTemplateInfo(DIZHU_GAMEID, 'table.quickpay',
                                         intClientId)
    ftlog.debug('quickpay->', intClientId, info)
    if not info:
        systype, _, _ = strutil.parseClientId(clientId)
        defalut = 'default_android'
        if systype == strutil.CLIENT_SYS_IOS:
            defalut = 'default_ios'
        ftlog.debug('quickpay defalut->', defalut)
        templates = configure.getGameTemplates(DIZHU_GAMEID, 'table.quickpay')
        info = templates.get(defalut)
    ftlog.debug('quickpay info->', info)
    return info
Exemplo n.º 7
0
def getHallSessionInfo(gameId, clientId):
    if not gameId or gameId == HALL_GAMEID:
        gameId = strutil.getGameIdFromHallClientId(clientId)
    intClientId = pokerconf.clientIdToNumber(clientId)
    return configure.getGameTemplateInfo(gameId, 'hall.info', intClientId,
                                         _adjustHallSessionInfo)
Exemplo n.º 8
0
def getShareUrl(gameId, clientId):
    intClientId = pokerconf.clientIdToNumber(clientId)
    return configure.getGameTemplateInfo(gameId, 'share.url', intClientId)
Exemplo n.º 9
0
def getHallSessionInfo(gameId, clientId):
    if not gameId or gameId == HALL_GAMEID:
        gameId = strutil.getGameIdFromHallClientId(clientId)
    intClientId = pokerconf.clientIdToNumber(clientId)
    return configure.getGameTemplateInfo(gameId, 'hall.info', intClientId, _adjustHallSessionInfo)
Exemplo n.º 10
0
def getShareUrl(gameId, clientId):
    intClientId = pokerconf.clientIdToNumber(clientId)
    return configure.getGameTemplateInfo(gameId, 'share.url', intClientId)
Exemplo n.º 11
0
def getDdzSessionInfo(gameId, clientId):
    intClientId = pokerconf.clientIdToNumber(clientId)
    return configure.getGameTemplateInfo(gameId, 'tvohall.info', intClientId,
                                         _adjustDdzSessionInfo)
Exemplo n.º 12
0
def getIsTableBuyInAll(clientId):
    intClientId = pokerconf.clientIdToNumber(clientId)
    return configure.getGameTemplateInfo(DIZHU_GAMEID, 'table.buyinall',
                                         intClientId, None)