|
@@ -110,17 +110,17 @@ class TokenObject:
|
|
|
}
|
|
|
app_bundle_id = data.get('appBundleId', None)
|
|
|
token_version = data.get('tokenVersion', None)
|
|
|
- LOGGER.info('生成新token,参数:{}'.format(data))
|
|
|
+ LOGGER.info('{}生成新token,参数:{}'.format(data['userID'], data))
|
|
|
if app_bundle_id and token_version == 'V2':
|
|
|
redis_obj = RedisObject()
|
|
|
key = 'token_user_{}_{}'.format(data['userID'], app_bundle_id)
|
|
|
- LOGGER.info('写入新token:{}'.format(access_token))
|
|
|
+ LOGGER.info('{}写入新token:{}'.format(data['userID'], access_token))
|
|
|
redis_obj.set_data(key, access_token)
|
|
|
if data['tokenVal']:
|
|
|
# 请求推送
|
|
|
push_url = '{}transparent-transmission/logout-push'.format(DETECT_PUSH_DOMAINS)
|
|
|
result = requests.post(push_url, data={'push_token': data['tokenVal'], 'user_id': data['userID']})
|
|
|
- LOGGER.info('登出推送结果:{}'.format(result))
|
|
|
+ LOGGER.info('{}登出推送结果:{}'.format(data['userID'], result))
|
|
|
except Exception as e:
|
|
|
self.code = 309
|
|
|
print(repr(e))
|