Эх сурвалжийг харах

删除定制化推送注释

locky 1 жил өмнө
parent
commit
c624d69af5

+ 5 - 5
Controller/CustomizedPushController.py

@@ -54,13 +54,13 @@ class CustomizedPushView(View):
             }
             # customized_push(**kwargs)
             # 异步推送消息和保存数据
-            # push_thread = threading.Thread(
-            #     target=customized_push,
-            #     kwargs=kwargs)
-            # push_thread.start()
+            push_thread = threading.Thread(
+                target=customized_push,
+                kwargs=kwargs)
+            push_thread.start()
 
             # 更新推送状态
-            # customized_push_qs.update(push_satus=True)
+            customized_push_qs.update(push_satus=True)
             return response.json(0)
         except Exception as e:
             return HttpResponse(repr(e), status=500)