|
@@ -72,7 +72,8 @@ class NotificationV2View(View):
|
|
|
try:
|
|
|
is_st = int(is_st)
|
|
|
region = int(region)
|
|
|
- uid = DevicePushService.decode_uid(etk, uidToken) # 解密uid
|
|
|
+ if not uid:
|
|
|
+ uid = DevicePushService.decode_uid(etk, uidToken) # 解密uid
|
|
|
if len(uid) != 20 and len(uid) != 14:
|
|
|
return JsonResponse(status=200, data={'code': 404, 'msg': 'wrong uid'})
|
|
|
req_limiting = '{uid}_{channel}_{event_type}_ptl' \
|