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)
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)
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
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
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
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
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)
def getShareUrl(gameId, clientId): intClientId = pokerconf.clientIdToNumber(clientId) return configure.getGameTemplateInfo(gameId, 'share.url', intClientId)
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)
def getShareUrl(gameId, clientId): intClientId = pokerconf.clientIdToNumber(clientId) return configure.getGameTemplateInfo(gameId, 'share.url', intClientId)
def getDdzSessionInfo(gameId, clientId): intClientId = pokerconf.clientIdToNumber(clientId) return configure.getGameTemplateInfo(gameId, 'tvohall.info', intClientId, _adjustDdzSessionInfo)
def getIsTableBuyInAll(clientId): intClientId = pokerconf.clientIdToNumber(clientId) return configure.getGameTemplateInfo(DIZHU_GAMEID, 'table.buyinall', intClientId, None)