Skip to content

Commit

Permalink
限制200条
Browse files Browse the repository at this point in the history
  • Loading branch information
SR.李 committed Dec 15, 2023
1 parent 4c501f7 commit 76867f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/chat/libs/ChatDbHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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([
Expand All @@ -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([
Expand All @@ -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([
Expand Down

0 comments on commit 76867f5

Please sign in to comment.