|
@@ -113,7 +113,9 @@ class TokenObject:
|
|
|
key = 'token_user_{}_{}'.format(data['userID'], data['appBundleId'])
|
|
|
redis_obj.set_data(key, access_token)
|
|
|
if data['tokenVal']:
|
|
|
- pass # 请求推送
|
|
|
+ # 请求推送
|
|
|
+ push_url = '{}logout/push'.format(DETECT_PUSH_DOMAINS)
|
|
|
+ requests.post(push_url, data={'push_token': data['tokenVal'], 'user_id': data['userID']})
|
|
|
except Exception as e:
|
|
|
self.code = 309
|
|
|
print(repr(e))
|