Update API

- Send message now returns the message md5 to client in the body part
This commit is contained in:
Linloir 2022-10-14 15:14:23 +08:00
parent 52c32c2e74
commit 436af5c21a
No known key found for this signature in database
GPG Key ID: 58EEB209A0F2C366

View File

@ -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<TCPResponse> 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(