コード例 #1
0
ファイル: hallconf.py プロジェクト: zhaozw/hall37
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)
コード例 #2
0
ファイル: hallconf.py プロジェクト: isoundy000/learn_python
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)
コード例 #3
0
ファイル: hallconf.py プロジェクト: zhaozw/hall37
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
コード例 #4
0
ファイル: hallconf.py プロジェクト: isoundy000/learn_python
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
コード例 #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
コード例 #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
コード例 #7
0
ファイル: hallconf.py プロジェクト: isoundy000/learn_python
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)
コード例 #8
0
ファイル: majiang_conf.py プロジェクト: zhaozw/hall37
def getShareUrl(gameId, clientId):
    intClientId = pokerconf.clientIdToNumber(clientId)
    return configure.getGameTemplateInfo(gameId, 'share.url', intClientId)
コード例 #9
0
ファイル: hallconf.py プロジェクト: zhaozw/hall37
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)
コード例 #10
0
ファイル: majiang_conf.py プロジェクト: zhaozw/hall37
def getShareUrl(gameId, clientId):
    intClientId = pokerconf.clientIdToNumber(clientId)
    return configure.getGameTemplateInfo(gameId, 'share.url', intClientId)
コード例 #11
0
def getDdzSessionInfo(gameId, clientId):
    intClientId = pokerconf.clientIdToNumber(clientId)
    return configure.getGameTemplateInfo(gameId, 'tvohall.info', intClientId,
                                         _adjustDdzSessionInfo)
コード例 #12
0
def getIsTableBuyInAll(clientId):
    intClientId = pokerconf.clientIdToNumber(clientId)
    return configure.getGameTemplateInfo(DIZHU_GAMEID, 'table.buyinall',
                                         intClientId, None)