|
@@ -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)
|
|
|
# 记录操作日志
|