From 910b770784a5205a968dea0a87bae3a49ea1e8b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=BF=E5=B0=8F=E5=A4=A9?= <1638245306@qq.com> Date: Tue, 3 Jan 2023 01:31:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=8F=98=E5=8C=96:=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96websocket?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/application/websocketConfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/application/websocketConfig.py b/backend/application/websocketConfig.py index 1e1dffb..c3d4894 100644 --- a/backend/application/websocketConfig.py +++ b/backend/application/websocketConfig.py @@ -128,7 +128,7 @@ def websocket_push(user_id,message): } ) -def create_message_push(title: str, content: str, target_type: int, target_user: list, target_dept=None, target_role=None, +def create_message_push(title: str, content: str, target_type: int=0, target_user: list=[], target_dept=None, target_role=None, message: dict = {'contentType': 'INFO', 'content': '测试~'}, request= Request): if message is None: message = {"contentType": "INFO", "content": None}