|
@@ -77,7 +77,7 @@ class UserRelatedView(View):
|
|
|
try:
|
|
|
redis_obj = RedisObject()
|
|
|
status = redis_obj.get_data(uuid_number)
|
|
|
- if status == 0:
|
|
|
+ if status == '0':
|
|
|
return response.json(18)
|
|
|
elif status is False:
|
|
|
return response.json(119)
|
|
@@ -105,7 +105,7 @@ class UserRelatedView(View):
|
|
|
status = redis_obj.get_data(uuid_number)
|
|
|
if status is False:
|
|
|
return response.json(119)
|
|
|
- flag = redis_obj.set_ex_data(uuid_number, token)
|
|
|
+ flag = redis_obj.set_ex_data(uuid_number, token, 300)
|
|
|
if flag is False:
|
|
|
return response.json(309)
|
|
|
return response.json(0)
|