Skip to content

Commit

Permalink
fix: 修复群辉部分消息发送失败
Browse files Browse the repository at this point in the history
  • Loading branch information
linyuan0213 committed Nov 3, 2024
1 parent e47bdbf commit 44d3a77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/message/client/synologychat.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 44d3a77

Please sign in to comment.