Browse Source

一键通话

peng 2 years ago
parent
commit
72108c5d72
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Controller/DetectControllerV2.py

+ 2 - 1
Controller/DetectControllerV2.py

@@ -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' \