Browse Source

修改退出登录变量问题

zhangdongming 4 months ago
parent
commit
47769643d1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/UserController.py

+ 1 - 1
Controller/UserController.py

@@ -325,8 +325,8 @@ class LogoutView(TemplateView):
             with transaction.atomic():
                 Device_User.objects.filter(userID=tko.userID).update(online=False)
                 Device_Info.objects.filter(userID=tko.userID).update(NotificationMode=0)
+                userID = tko.userID
                 if m_code:
-                    userID = tko.userID
                     UidPushModel.objects.filter(userID_id=userID, m_code=m_code).delete()
                     GatewayPush.objects.filter(user_id=userID, m_code=m_code).update(logout=True)
                 # 记录操作日志