From 44d3a7768bca90f422035764822fc3720b1859bd Mon Sep 17 00:00:00 2001 From: "C.C" Date: Sun, 3 Nov 2024 10:31:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=BE=A4=E8=BE=89?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=B6=88=E6=81=AF=E5=8F=91=E9=80=81=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/message/client/synologychat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/message/client/synologychat.py b/app/message/client/synologychat.py index baade1ae..f49b121b 100644 --- a/app/message/client/synologychat.py +++ b/app/message/client/synologychat.py @@ -85,6 +85,7 @@ def send_msg(self, title, text="", image="", url="", user_id=""): error_flag, error_msg = self.__send_request(payload_data) if not error_flag: return error_flag, error_msg + return error_flag, error_msg except Exception as msg_e: ExceptionUtils.exception_traceback(msg_e) return False, str(msg_e) @@ -126,12 +127,12 @@ def send_list_msg(self, medias: list, user_id="", title="", **kwargs): for user_id in user_ids: payload_data = { "text": quote(caption), - "file_url": quote(image), "user_ids": [user_id] } error_flag, error_msg = self.__send_request(payload_data) if not error_flag: return error_flag, error_msg + return error_flag, error_msg except Exception as msg_e: ExceptionUtils.exception_traceback(msg_e) return False, str(msg_e)