...
|
...
|
@@ -39,18 +39,16 @@ exports.saveMessage = (encryptedUid, conversationId, content) => { |
|
|
* @param [int] endTime
|
|
|
*/
|
|
|
exports.fetchImHistory = (encryptedUid, endTime, pageSize, startTime) => {
|
|
|
pageSize = pageSize || 10;
|
|
|
|
|
|
let params = {
|
|
|
pageSize,
|
|
|
encryptedUid
|
|
|
};
|
|
|
|
|
|
|
|
|
_.forEach({startTime, endTime}, (val, key) => {
|
|
|
val && (params[key] = val);
|
|
|
});
|
|
|
|
|
|
return ImService.post('/api/conversationMessage/pageList', params)
|
|
|
return ImService.post('/api/conversationMessage/pageList', params, {timeout: 5000})
|
|
|
.then(result => {
|
|
|
return result;
|
|
|
}, () => {
|
...
|
...
|
|