Skip to content

Commit

Permalink
调整收藏排序
Browse files Browse the repository at this point in the history
  • Loading branch information
SR.李 committed Feb 23, 2024
1 parent 084a0d2 commit 2643482
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/common/model/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static function getMessage($userid = '', $count = 50, $topicId = 0)

public static function getMessageIdArr($msgIdArr , $count = 50)
{
return self::with('user')->where('msg_id', 'in', $msgIdArr)->where('is_delete', 0)->order('ctime','desc')->paginate($count, false, ['page' => request()->param('page/d', 1), 'path' => '[PAGE].html']);
return self::with('user')->where('msg_id', 'in', $msgIdArr)->where('is_delete', 0)->paginate($count, false, ['page' => request()->param('page/d', 1), 'path' => '[PAGE].html']);
}

public static function getUserMessage($userid = '', $count = 50)
Expand Down
2 changes: 1 addition & 1 deletion application/tools/controller/Collect.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getList()
->field('message.msg_id,message.contents,message.media,message.media_info,user_collect.collect_id,user_collect.collect_time')
->where('user_collect.fromuid', $uid)
->where('user_collect.delete_time', 0)
->order('user_collect.collect_id asc')
->order('user_collect.collect_id desc')
->limit($limit)->page($page)
->select();
foreach ($list as &$value) {
Expand Down

0 comments on commit 2643482

Please sign in to comment.