...
|
...
|
@@ -78,11 +78,12 @@ exports.fetchHistory = (req, res) => { |
|
|
* content 留言内容
|
|
|
*/
|
|
|
exports.saveMSG = (req, res) => {
|
|
|
let encryptedUid = req.body.encryptedUid;
|
|
|
const uid = req.user.uid || req.query.uid;
|
|
|
const encryptedUid = req.body.encryptedUid;
|
|
|
const conversationId = req.body.conversationId;
|
|
|
const content = req.body.content;
|
|
|
|
|
|
imApi.saveMessage(encryptedUid, conversationId, content)
|
|
|
imApi.saveMessage(uid, encryptedUid, conversationId, content)
|
|
|
.then(result => {
|
|
|
res.json(result);
|
|
|
});
|
...
|
...
|
|