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