|
@@ -152,6 +152,8 @@ class UserRelatedView(View):
|
|
|
user_id = token_obj.userID
|
|
|
user_icon_url, nick_name = UserRelatedView.get_user_info(user_id)
|
|
|
res = {'status': 1, 'userIconUrl': user_icon_url, 'nickName': nick_name}
|
|
|
+ redis_obj.del_data(uuid_number)
|
|
|
+ redis_obj.del_data(uuid_number + 'token')
|
|
|
else: # 未登录
|
|
|
res = {'status': 0}
|
|
|
return response.json(0, res)
|
|
@@ -182,7 +184,7 @@ class UserRelatedView(View):
|
|
|
ttl = redis_obj.get_ttl(uuid_number)
|
|
|
if token is False or ttl == 0:
|
|
|
return response.json(119)
|
|
|
- result = redis_obj.set_ex_data(uuid_number, 2, ttl)
|
|
|
+ result = redis_obj.set_ex_data(uuid_number, 2, ttl) # 修改uuid状态为已登录
|
|
|
if result is False:
|
|
|
return response.json(119)
|
|
|
token_obj = TokenObject(token)
|