This commit is contained in:
hrxiang
2022-11-25 17:03:50 +08:00
parent 099cb9849a
commit b8a51374a3
13 changed files with 89 additions and 9 deletions

View File

@@ -823,9 +823,9 @@ class MessageManager {
.invokeMethod(
'createImageMessageByURL',
_buildParam({
'sourcePicture': sourcePicture,
'bigPicture': bigPicture,
'snapshotPicture': snapshotPicture,
'sourcePicture': sourcePicture.toJson(),
'bigPicture': bigPicture.toJson(),
'snapshotPicture': snapshotPicture.toJson(),
"operationID": Utils.checkOperationID(operationID),
}),
)
@@ -840,7 +840,7 @@ class MessageManager {
.invokeMethod(
'createSoundMessageByURL',
_buildParam({
'soundElem': soundElem,
'soundElem': soundElem.toJson(),
"operationID": Utils.checkOperationID(operationID),
}),
)
@@ -855,7 +855,7 @@ class MessageManager {
.invokeMethod(
'createVideoMessageByURL',
_buildParam({
'videoElem': videoElem,
'videoElem': videoElem.toJson(),
"operationID": Utils.checkOperationID(operationID),
}))
.then((value) => Utils.toObj(value, (map) => Message.fromJson(map)));
@@ -869,7 +869,7 @@ class MessageManager {
.invokeMethod(
'createFileMessageByURL',
_buildParam({
'fileElem': fileElem,
'fileElem': fileElem.toJson(),
"operationID": Utils.checkOperationID(operationID),
}))
.then((value) => Utils.toObj(value, (map) => Message.fromJson(map)));