From 436af5c21a9da63129bb28d9b2dec6ad4dd518f6 Mon Sep 17 00:00:00 2001 From: Linloir <3145078758@qq.com> Date: Fri, 14 Oct 2022 15:14:23 +0800 Subject: [PATCH] Update API - Send message now returns the message md5 to client in the body part --- lib/requesthandler.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/requesthandler.dart b/lib/requesthandler.dart index 5b0226d..4e56ae1 100644 --- a/lib/requesthandler.dart +++ b/lib/requesthandler.dart @@ -1,7 +1,7 @@ /* * @Author : Linloir * @Date : 2022-10-08 20:52:48 - * @LastEditTime : 2022-10-14 11:29:03 + * @LastEditTime : 2022-10-14 15:13:08 * @Description : */ @@ -161,6 +161,9 @@ Future onSendMessage(TCPRequest request, Socket socket) async { return TCPResponse( type: ResponseType.fromRequestType(request.requestType), status: ResponseStatus.ok, + body: { + 'md5encoded': message.md5encoded + } ); } on Exception catch (exception) { return TCPResponse(