Пример #1
0
def getCityName(userId):
    datas = userdata.getSessionData(userId)
    name = datas[UserSessionSchema.CITYCODE][1]
    if name:
        return name
    else:
        return '全国'
Пример #2
0
def getCityName(userId):
    datas = userdata.getSessionData(userId)
    name = datas[UserSessionSchema.CITYCODE][1]
    if name:
        return name
    else:
        return '全国'
Пример #3
0
def getClientIp(userId):
    """
    获取ClientIp
    :param userId:
    :return:
    """
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.IPADDRESS]
Пример #4
0
def getGameId(userId):
    """
    获取游戏Id
    :param userId:
    :return:
    """
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.APPID]
Пример #5
0
def getDeviceId(userId):
    """
    获取设备ID
    :param userId:
    :return:
    """
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.DEVICEID]
Пример #6
0
def getConnId(userId):
    """
    获取
    :param userId:
    :return:
    """
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.CONN]  # 当前接入的CO进程的ID
Пример #7
0
def getCityName(userId):
    """
    获取城市名称
    :param userId:
    :return:
    """
    datas = userdata.getSessionData(userId)
    name = datas[UserSessionSchema.CITYCODE][1]  # 最后登录时的城市代码数据
    if name:
        return name
    else:
        return '全国'
Пример #8
0
def getGameId(userId):
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.APPID]
Пример #9
0
def getClientIp(userId):
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.IPADDRESS]
Пример #10
0
def getClientIp(userId):
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.IPADDRESS]
Пример #11
0
def getCityZip(userId):
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.CITYCODE][0]
Пример #12
0
def getClientId(userId):
    '''
    取得用户的当前的客户端ID
    '''
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.CLIENTID]
Пример #13
0
def getCityZip(userId):
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.CITYCODE][0]
Пример #14
0
def getDeviceId(userId):
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.DEVICEID]
Пример #15
0
def getCityZip(userId):
    """
    最后登录时的城市代码数据
    """
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.CITYCODE][0]
Пример #16
0
def getConnId(userId):
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.CONN]
Пример #17
0
def getDeviceId(userId):
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.DEVICEID]
Пример #18
0
def getGameId(userId):
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.APPID]
Пример #19
0
def getConnId(userId):
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.CONN]
Пример #20
0
def getClientId(userId):
    '''
    取得用户的当前的客户端ID
    '''
    datas = userdata.getSessionData(userId)
    return datas[UserSessionSchema.CLIENTID]