From 76867f5b25b296e6e69084aa7c70d852bf8cd74d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?SR=2E=E6=9D=8E?= Date: Fri, 15 Dec 2023 15:24:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=99=90=E5=88=B6200=E6=9D=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/chat/libs/ChatDbHelper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/chat/libs/ChatDbHelper.php b/application/chat/libs/ChatDbHelper.php index 93e6f8c0..1c90505a 100644 --- a/application/chat/libs/ChatDbHelper.php +++ b/application/chat/libs/ChatDbHelper.php @@ -63,7 +63,7 @@ public static function getChatFriendHistory($data) { $result = Db::name('chat_friends_history')->alias('chat')->join([getPrefix() . 'user' => 'user'], 'user.uid=chat.fromuid')->where('fromuid', 'in', [$data['touid'], $data['fromuid']]) ->where('touid', 'in', [$data['touid'], $data['fromuid']]) - ->limit(1000) + ->limit(200) ->order('chat_id', 'desc') ->field('user.head_image,user.nickname,chat.*')->select(); Db::name('chat_friends_history')->where('fromuid', $data['touid'])->where('touid', $data['fromuid'])->where('send_status', 0)->update([ @@ -79,7 +79,7 @@ public static function getChatPrivateLetterHistory($data) { $result = Db::name('chat_private_letter_history')->alias('chat')->join([getPrefix() . 'user' => 'user'], 'user.uid=chat.fromuid')->where('fromuid', 'in', [$data['touid'], $data['fromuid']]) ->where('touid', 'in', [$data['touid'], $data['fromuid']]) - ->limit(1000) + ->limit(200) ->order('chat_id', 'desc') ->field('user.head_image,user.nickname,chat.*')->select(); Db::name('chat_private_letter_history')->where('fromuid', $data['touid'])->where('touid', $data['fromuid'])->where('send_status', 0)->update([ @@ -96,7 +96,7 @@ public static function getChatGroupHistory($data) $result = Db::name('chat_group_history')->alias('chat') ->join([getPrefix() . 'user' => 'user'], 'user.uid=chat.fromuid') ->where('groupid', $data['groupid']) - ->limit(1000) + ->limit(200) ->order('chat_id', 'desc') ->field('user.head_image,user.nickname,chat.*')->select(); Db::name('chat_group_user')->where('uid', $data['uid'])->where('groupid', $data['groupid'])->update([