|
@@ -34,7 +34,7 @@ class TokenObject:
|
|
|
self.userID = res.get('userID', None)
|
|
|
self.lang = res.get('lang', None)
|
|
|
self.user = res.get('user', '')
|
|
|
- app_bundle_id = res.get('appBundleId', None)
|
|
|
+ self.app_bundle_id = res.get('appBundleId', None)
|
|
|
# 刷新登录时间
|
|
|
# if self.userID:
|
|
|
# print(self.user)
|
|
@@ -53,9 +53,9 @@ class TokenObject:
|
|
|
return
|
|
|
else:
|
|
|
if self.userID:
|
|
|
- if app_bundle_id:
|
|
|
+ if self.app_bundle_id:
|
|
|
redis_obj = RedisObject()
|
|
|
- key = 'token_user_{}_{}'.format(self.userID, app_bundle_id)
|
|
|
+ key = 'token_user_{}_{}'.format(self.userID, self.app_bundle_id)
|
|
|
redis_token = redis_obj.get_data(key)
|
|
|
if not redis_token:
|
|
|
redis_obj.set_data(key, self.token)
|