瀏覽代碼

一键通话

peng 2 年之前
父節點
當前提交
72108c5d72
共有 1 個文件被更改,包括 2 次插入1 次删除
  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' \