Parcourir la source

不传sid全改系统消息

chenjunkai il y a 6 ans
Parent
commit
2b249e0778
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      Controller/SysMsg.py

+ 2 - 1
Controller/SysMsg.py

@@ -127,4 +127,5 @@ class SysMsgView(View):
             else:
                 return response.json(173)
         else:
-            return response.json(444, 'sid')
+            sm_qs = SysMsgModel.objects.filter(userID_id=userID).update(status=1)
+            return response.json(0)