Showing
1 changed file
with
5 additions
and
1 deletions
@@ -741,6 +741,7 @@ function pageInit() { | @@ -741,6 +741,7 @@ function pageInit() { | ||
741 | * 获取历史聊天记录 | 741 | * 获取历史聊天记录 |
742 | */ | 742 | */ |
743 | function fetchHistoryMsg() { | 743 | function fetchHistoryMsg() { |
744 | + var msgList = []; | ||
744 | var data = { | 745 | var data = { |
745 | encryptedUid: encryptedUid | 746 | encryptedUid: encryptedUid |
746 | }; | 747 | }; |
@@ -754,7 +755,10 @@ function pageInit() { | @@ -754,7 +755,10 @@ function pageInit() { | ||
754 | data: data, | 755 | data: data, |
755 | success: function(res) { | 756 | success: function(res) { |
756 | if (res && res.code === 200) { | 757 | if (res && res.code === 200) { |
757 | - hasMore && msgResolve(res.data); | 758 | + if(hasMore) { |
759 | + msgList = res.data && res.data.records || []; | ||
760 | + msgResolve(msgList); | ||
761 | + } | ||
758 | $history.hide(); | 762 | $history.hide(); |
759 | processInfo.scrollLoad = true; | 763 | processInfo.scrollLoad = true; |
760 | } | 764 | } |
-
Please register or login to post a comment