From 046335062672b63c1038db4ab5219a2fc4020114 Mon Sep 17 00:00:00 2001 From: Lei OT Date: Mon, 11 Mar 2024 14:51:04 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E8=8E=B7=E5=8F=96=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/actions/ConversationActions.js | 2 +- src/views/Conversations/Components/ConversationsList.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/actions/ConversationActions.js b/src/actions/ConversationActions.js index 2668d7b..c342852 100644 --- a/src/actions/ConversationActions.js +++ b/src/actions/ConversationActions.js @@ -32,7 +32,7 @@ export const fetchMessages = async (params) => { whatsappid: '', // lasttime: '', lasttime: '2024-01-01T00:25:30', // test: - pagesize: 100, + pagesize: 400, }; const { errcode, result } = await fetchJSON(`${API_HOST}/getcusmessages`, {...defaultParams, ...params}); return errcode !== 0 ? [] : parseRenderMessageList(result || []); diff --git a/src/views/Conversations/Components/ConversationsList.jsx b/src/views/Conversations/Components/ConversationsList.jsx index c7f4665..8e05826 100644 --- a/src/views/Conversations/Components/ConversationsList.jsx +++ b/src/views/Conversations/Components/ConversationsList.jsx @@ -73,7 +73,7 @@ const Conversations = () => { }; const getMessages = async (item) => { setMsgLoading(true); - const data = await fetchMessages({ opisn: userId, whatsappid: item.whatsapp_phone_number, lasttime: '2024-01-01T00:25:30' }); + const data = await fetchMessages({ opisn: userId, whatsappid: item.whatsapp_phone_number }); setMsgLoading(false); receivedMessageList(item.sn, data); };