|
@@ -52,7 +52,7 @@ class SnapshotView(View):
|
|
|
# 更新correlation_token
|
|
|
user_id = user_qs[0]['userID']
|
|
|
redis_obj = RedisObject()
|
|
|
- key = 'correlation_token_{}'.format(user_id)
|
|
|
+ key = 'correlation_token_{}'.format(uid)
|
|
|
redis_obj.set_data(key=key, val=correlation_token, expire=60*5)
|
|
|
|
|
|
region = user_qs.values('region_code')[0]['region_code']
|
|
@@ -125,7 +125,7 @@ class SnapshotView(View):
|
|
|
if not access_token:
|
|
|
return JsonResponse({'result_code': '500', 'msg': 'get access_token error'})
|
|
|
redis_obj = RedisObject()
|
|
|
- key = 'correlation_token_{}'.format(user_id)
|
|
|
+ key = 'correlation_token_{}'.format(uid)
|
|
|
correlation_token = redis_obj.get_data(key)
|
|
|
if not correlation_token:
|
|
|
return JsonResponse({'result_code': '500', 'msg': 'correlation_token not exit'})
|