Browse Source

Merge remote-tracking branch 'remotes/origin/bin' into dev

Ansjer 4 years ago
parent
commit
232f73af56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Controller/CloudStorage.py

+ 1 - 1
Controller/CloudStorage.py

@@ -1535,6 +1535,7 @@ class CloudStorageView(View):
                         msg=sys_msg_text,
                         msg=sys_msg_text,
                         status=0
                         status=0
                     ))
                     ))
+                    SysMsgModel.objects.bulk_create(uq_list)
                     user_qs = Device_User.objects.filter(userID=oo['userID_id'])
                     user_qs = Device_User.objects.filter(userID=oo['userID_id'])
                     if user_qs.exists():
                     if user_qs.exists():
                         user = user_qs[0]
                         user = user_qs[0]
@@ -1550,7 +1551,6 @@ class CloudStorageView(View):
 
 
                         self.pushApp(now_time, ub['uid'], ub['channel'], sys_msg_text)
                         self.pushApp(now_time, ub['uid'], ub['channel'], sys_msg_text)
 
 
-        SysMsgModel.objects.bulk_create(uq_list)
 
 
 
 
     def pushApp(self, nowTime, uid, channel, sys_msg_text):
     def pushApp(self, nowTime, uid, channel, sys_msg_text):