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